Finishing touches
This commit is contained in:
parent
387dc5346e
commit
5bb6f303a1
8 changed files with 7 additions and 22 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
@ -10,8 +9,7 @@ source dev-container-features-test-lib
|
|||
check "version 6.0.405 installed" bash -c 'dotnet --list-sdks | grep 6.0.405'
|
||||
check "version 3.1.416 installed" bash -c 'dotnet --list-sdks | grep 3.1.416'
|
||||
|
||||
# primary version plus 2 additional versions
|
||||
# Primary version plus 2 additional versions
|
||||
check "latest version installed" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 3'
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
||||
check "some major version of dotnet 3 is installed" bash -c "dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*'"
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
||||
check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
||||
check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'"
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
||||
check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
./test.sh
|
||||
|
||||
check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'"
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,14 +2,12 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
# some runtime installed
|
||||
# Some runtime installed
|
||||
check "runtime" bash -c 'test "$(dotnet --list-runtimes | wc -l)" -gt 0'
|
||||
|
||||
# no sdk installed
|
||||
# No sdk installed
|
||||
check "no sdk" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 0'
|
||||
|
||||
# Report result
|
||||
reportResults
|
||||
|
|
|
@ -2,20 +2,19 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
# Definition specific tests
|
||||
check "dotnet" dotnet --info
|
||||
check "sdks" dotnet --list-sdks
|
||||
check "version" dotnet --version
|
||||
|
||||
check "ls /usr/local/dotnet" bash -c 'test "$(ls /usr/local/dotnet | wc -l)" -gt 0'
|
||||
|
||||
# Verify current symlink exists and works
|
||||
check "current link dotnet" /usr/local/dotnet/current/dotnet --info
|
||||
check "current link sdks" /usr/local/dotnet/current/dotnet --list-sdks
|
||||
check "current link version" /usr/local/dotnet/current/dotnet --version
|
||||
|
||||
# Report result
|
||||
# Verify installation location
|
||||
check "dotnet in /usr/local/dotnet" bash -c 'test "$(ls /usr/local/dotnet | wc -l)" -gt 0'
|
||||
check "sdks in /usr/local/dotnet/sdk" bash -c 'test "$(ls /usr/local/dotnet/current/sdk | wc -l)" -gt 0'
|
||||
|
||||
reportResults
|
||||
|
|
Loading…
Reference in a new issue