aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-02-28 03:58:07 +0300
committerJP Ungaretti <git@jungaretti.com>2023-02-28 03:58:07 +0300
commitd664137814a5f59a954df2b7a5fda665b4d50e97 (patch)
treedb2d6edbda9711a73854812a08c128972110f568 /test
parentdf4db859fb789a25f95fa51cceb61651ce41e8f2 (diff)
Rewrite dotnet feature
Diffstat (limited to 'test')
-rwxr-xr-xtest/dotnet/test.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/dotnet/test.sh b/test/dotnet/test.sh
index 4b6c4fd..74c71bd 100755
--- a/test/dotnet/test.sh
+++ b/test/dotnet/test.sh
@@ -6,16 +6,17 @@ set -e
source dev-container-features-test-lib
# Definition specific tests
-check "dotnet" dotnet --info
-check "sdks" dotnet --list-sdks
+check "info" dotnet --info
+check "list-sdks" dotnet --list-sdks
check "version" dotnet --version
-echo "Validating expected version present..."
-check "some major version of dotnet 7 is installed" bash -c "dotnet --version | grep '7\.[0-9]*\.[0-9]*'"
+# Make sure the symlink works
+check "current link info" /usr/local/dotnet/current/dotnet --info
+check "current link sdk directory" ls -l /usr/local/dotnet/current/sdk
-# 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
+# TODO: Installer script defaults to .NET 6 as that's LTS. Update this test or remove it.
+# echo "Validating expected version present..."
+# check "some major version of dotnet 7 is installed" bash -c "dotnet --version | grep '7\.[0-9]*\.[0-9]*'"
# Report result
reportResults