diff options
Diffstat (limited to 'test-scenarios')
-rw-r--r-- | test-scenarios/install_dotnet_3.sh | 13 | ||||
-rw-r--r-- | test-scenarios/install_dotnet_5.sh | 14 | ||||
-rw-r--r-- | test-scenarios/scenarios.json | 16 |
3 files changed, 43 insertions, 0 deletions
diff --git a/test-scenarios/install_dotnet_3.sh b/test-scenarios/install_dotnet_3.sh new file mode 100644 index 0000000..0d05215 --- /dev/null +++ b/test-scenarios/install_dotnet_3.sh @@ -0,0 +1,13 @@ +#!/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 3 is installed" dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*' +check "dotnet version 3 installed" ls -l /usr/share/dotnet/sdk | grep '3\.[0-9]*\.[0-9]*' + +# Report result +reportResults diff --git a/test-scenarios/install_dotnet_5.sh b/test-scenarios/install_dotnet_5.sh new file mode 100644 index 0000000..5f48eb1 --- /dev/null +++ b/test-scenarios/install_dotnet_5.sh @@ -0,0 +1,14 @@ +#!/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 5 is installed" dotnet --list-sdks | grep '5\.[0-9]*\.[0-9]*' +check "dotnet version 5 installed" ls -l /usr/share/dotnet/sdk | grep '5\.[0-9]*\.[0-9]*' + + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index 3398df7..853da2f 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -75,5 +75,21 @@ "additionalVersions": "5.0,3.1.420" } } + }, + "install_dotnet_5": { + "image": "ubuntu:focal", + "features": { + "dotnet": { + "version": "5" + } + } + }, + "install_dotnet_3": { + "image": "ubuntu:focal", + "features": { + "dotnet": { + "version": "3" + } + } } } |