diff options
Diffstat (limited to 'test/dotnet/install_dotnet_6_focal.sh')
-rw-r--r-- | test/dotnet/install_dotnet_6_focal.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/dotnet/install_dotnet_6_focal.sh b/test/dotnet/install_dotnet_6_focal.sh new file mode 100644 index 0000000..758f040 --- /dev/null +++ b/test/dotnet/install_dotnet_6_focal.sh @@ -0,0 +1,17 @@ +#!/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 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]*'" + +# 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 |