diff options
Diffstat (limited to 'test/dotnet/install_dotnet_runtime.sh')
-rw-r--r-- | test/dotnet/install_dotnet_runtime.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/dotnet/install_dotnet_runtime.sh b/test/dotnet/install_dotnet_runtime.sh new file mode 100644 index 0000000..f7f2752 --- /dev/null +++ b/test/dotnet/install_dotnet_runtime.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# some runtime installed +check "runtime" bash -c 'test "$(dotnet --list-runtimes | wc -l)" -gt 0' + +# no sdk installed +check "no sdk" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 0' + +# Report result +reportResults |