2022-05-12 23:10:51 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-05-13 03:07:22 +03:00
|
|
|
# Optional: Import test library
|
|
|
|
source dev-container-features-test-lib
|
2022-05-12 23:10:51 +03:00
|
|
|
|
|
|
|
# Definition specific tests
|
|
|
|
check "dotnet" dotnet --info
|
|
|
|
check "sdks" dotnet --list-sdks
|
2022-08-23 16:17:08 +03:00
|
|
|
check "version" dotnet --version
|
2022-05-12 23:10:51 +03:00
|
|
|
|
2022-08-17 00:33:25 +03:00
|
|
|
echo "Validating expected version present..."
|
2022-08-23 16:17:08 +03:00
|
|
|
check "some major version of dotnet 6 is installed" dotnet --version | grep '6\.[0-9]*\.[0-9]*'
|
2022-08-17 00:33:25 +03:00
|
|
|
|
2022-05-12 23:10:51 +03:00
|
|
|
# Report result
|
|
|
|
reportResults
|