2022-05-12 23:10:51 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-05-13 03:07:22 +03:00
|
|
|
source dev-container-features-test-lib
|
2022-05-12 23:10:51 +03:00
|
|
|
|
2023-03-01 04:28:09 +03:00
|
|
|
check "dotnet" dotnet --info
|
|
|
|
check "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-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
|
2022-11-14 22:41:32 +03:00
|
|
|
|
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
|