features/test/dotnet/test.sh

23 lines
665 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2022-05-13 03:07:22 +03:00
# Optional: Import test library
source dev-container-features-test-lib
# Definition specific tests
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
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]*'"
# Report result
2023-02-28 03:48:56 +03:00
reportResults