diff options
author | JP Ungaretti <git@jungaretti.com> | 2023-03-01 10:57:41 +0300 |
---|---|---|
committer | JP Ungaretti <git@jungaretti.com> | 2023-03-01 10:57:41 +0300 |
commit | ab802885688efb5dd5410421ea2c3d1151d24e8c (patch) | |
tree | 85d96c9fd4d944f95e0012d6f4cef93354c88d04 /test | |
parent | a4746b2feb341357a30429294881dfc8fd6707d0 (diff) |
Add runtime test
Diffstat (limited to 'test')
-rw-r--r-- | test/dotnet/install_dotnet_runtime.sh | 15 | ||||
-rw-r--r-- | test/dotnet/scenarios.json | 9 |
2 files changed, 24 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 diff --git a/test/dotnet/scenarios.json b/test/dotnet/scenarios.json index 120be7e..f865e60 100644 --- a/test/dotnet/scenarios.json +++ b/test/dotnet/scenarios.json @@ -47,5 +47,14 @@ "version": "7" } } + }, + "install_dotnet_runtime": { + "image": "ubuntu:jammy", + "features": { + "dotnet": { + "version": "6.0.14", + "runtimeOnly": true + } + } } }
\ No newline at end of file |