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
|
2023-02-28 03:58:07 +03:00
|
|
|
check "info" dotnet --info
|
|
|
|
check "list-sdks" dotnet --list-sdks
|
2022-08-23 16:17:08 +03:00
|
|
|
check "version" dotnet --version
|
2022-05-12 23:10:51 +03:00
|
|
|
|
2023-02-28 03:58:07 +03:00
|
|
|
# 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
|
2022-11-14 22:41:32 +03:00
|
|
|
|
2023-02-28 03:58:07 +03:00
|
|
|
# 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]*'"
|
2022-08-17 00:33:25 +03:00
|
|
|
|
2022-05-12 23:10:51 +03:00
|
|
|
# Report result
|
2023-02-28 03:48:56 +03:00
|
|
|
reportResults
|