features/test/dotnet/test.sh

21 lines
652 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2022-05-13 03:07:22 +03:00
source dev-container-features-test-lib
2023-03-01 04:28:09 +03:00
check "dotnet" dotnet --info
check "sdks" dotnet --list-sdks
check "version" dotnet --version
2023-03-01 04:28:09 +03:00
# Verify current symlink exists and works
check "current link dotnet" /usr/local/dotnet/current/dotnet --info
2023-03-01 10:33:44 +03:00
check "current link sdks" /usr/local/dotnet/current/dotnet --list-sdks
check "current link version" /usr/local/dotnet/current/dotnet --version
2023-03-01 20:22:14 +03:00
# Verify installation location
check "dotnet in /usr/local/dotnet" bash -c 'test "$(ls /usr/local/dotnet | wc -l)" -gt 0'
check "sdks in /usr/local/dotnet/sdk" bash -c 'test "$(ls /usr/local/dotnet/current/sdk | wc -l)" -gt 0'
2023-02-28 03:48:56 +03:00
reportResults