features/test/dotnet/test.sh

19 lines
409 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2023-02-28 04:41:48 +03:00
# Import test library
2022-05-13 03:07:22 +03:00
source dev-container-features-test-lib
2023-02-28 04:41:48 +03:00
# Make sure .NET is installed
2023-02-28 03:58:07 +03:00
check "info" dotnet --info
check "list-sdks" dotnet --list-sdks
check "version" dotnet --version
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
# Report result
2023-02-28 03:48:56 +03:00
reportResults