aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 10:39:09 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 10:53:55 +0300
commita4746b2feb341357a30429294881dfc8fd6707d0 (patch)
tree7f9a1c5162ebe73a40d0bd6be0ed3e8b87dc3ff1
parent018003a29157534319297c6d55355e54333637d1 (diff)
Update version tests
-rw-r--r--test/dotnet/install_dotnet_3.sh8
-rw-r--r--test/dotnet/install_dotnet_6_bullseye.sh8
-rw-r--r--test/dotnet/install_dotnet_6_focal.sh8
-rw-r--r--test/dotnet/install_dotnet_7_bullseye.sh8
-rw-r--r--test/dotnet/install_dotnet_7_jammy.sh8
-rw-r--r--test/dotnet/install_dotnet_latest.sh17
-rw-r--r--test/dotnet/scenarios.json8
7 files changed, 10 insertions, 55 deletions
diff --git a/test/dotnet/install_dotnet_3.sh b/test/dotnet/install_dotnet_3.sh
index 51d871b..077b8dc 100644
--- a/test/dotnet/install_dotnet_3.sh
+++ b/test/dotnet/install_dotnet_3.sh
@@ -5,13 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 3 is installed" bash -c "dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*'"
-check "dotnet version 3 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '3\.[0-9]*\.[0-9]*'"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "some major version of dotnet 3 is installed" bash -c "dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*'"
# Report result
reportResults
diff --git a/test/dotnet/install_dotnet_6_bullseye.sh b/test/dotnet/install_dotnet_6_bullseye.sh
index 758f040..7bef5cc 100644
--- a/test/dotnet/install_dotnet_6_bullseye.sh
+++ b/test/dotnet/install_dotnet_6_bullseye.sh
@@ -5,13 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
-check "dotnet version 6 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '6\.[0-9]*\.[0-9]*'"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
# Report result
reportResults
diff --git a/test/dotnet/install_dotnet_6_focal.sh b/test/dotnet/install_dotnet_6_focal.sh
index 758f040..7bef5cc 100644
--- a/test/dotnet/install_dotnet_6_focal.sh
+++ b/test/dotnet/install_dotnet_6_focal.sh
@@ -5,13 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
-check "dotnet version 6 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '6\.[0-9]*\.[0-9]*'"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
# Report result
reportResults
diff --git a/test/dotnet/install_dotnet_7_bullseye.sh b/test/dotnet/install_dotnet_7_bullseye.sh
index 2c015fc..3f5b785 100644
--- a/test/dotnet/install_dotnet_7_bullseye.sh
+++ b/test/dotnet/install_dotnet_7_bullseye.sh
@@ -5,13 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
-check "dotnet version 7 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '7\.[0-9]*\.[0-9]*'"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
# Report result
reportResults
diff --git a/test/dotnet/install_dotnet_7_jammy.sh b/test/dotnet/install_dotnet_7_jammy.sh
index 2c015fc..3f5b785 100644
--- a/test/dotnet/install_dotnet_7_jammy.sh
+++ b/test/dotnet/install_dotnet_7_jammy.sh
@@ -5,13 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
-check "dotnet version 7 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '7\.[0-9]*\.[0-9]*'"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
# Report result
reportResults
diff --git a/test/dotnet/install_dotnet_latest.sh b/test/dotnet/install_dotnet_latest.sh
deleted file mode 100644
index 2c015fc..0000000
--- a/test/dotnet/install_dotnet_latest.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-set -e
-
-# Optional: Import test library
-source dev-container-features-test-lib
-
-check "dotnet sdks" dotnet --list-sdks
-check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
-check "dotnet version 7 installed" bash -c "ls -l /usr/share/dotnet/sdk | grep '7\.[0-9]*\.[0-9]*'"
-
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
-
-# Report result
-reportResults
diff --git a/test/dotnet/scenarios.json b/test/dotnet/scenarios.json
index b52e9af..120be7e 100644
--- a/test/dotnet/scenarios.json
+++ b/test/dotnet/scenarios.json
@@ -47,13 +47,5 @@
"version": "7"
}
}
- },
- "install_dotnet_latest": {
- "image": "ubuntu:jammy",
- "features": {
- "dotnet": {
- "version": "latest"
- }
- }
}
} \ No newline at end of file