aboutsummaryrefslogtreecommitdiff
path: root/test/dotnet/install_dotnet_5.sh
blob: 797feac03054a4931779e0ae6d70ef07a15df7f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

check "dotnet sdks" dotnet --list-sdks
check "some major version of dotnet 5 is installed" bash -c "dotnet --list-sdks |  grep '5\.[0-9]*\.[0-9]*'"
check "dotnet version 5 installed"  bash -c "ls -l /usr/share/dotnet/sdk | grep '5\.[0-9]*\.[0-9]*'"


# Report result
reportResults