aboutsummaryrefslogtreecommitdiff
path: root/test/dotnet/install_dotnet_runtime.sh
blob: f7f2752b04a8af95e66e8d199d3853ab3acb7d13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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