From c1ce660cac298c144d89df7f649dee104b870aec Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Wed, 1 Mar 2023 08:29:45 +0000 Subject: Add scenarios for build and run --- test/dotnet/build_dotnet_7.sh | 9 +++++++++ test/dotnet/run_dotnet_7.sh | 8 ++++++++ test/dotnet/scenarios.json | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 test/dotnet/build_dotnet_7.sh create mode 100644 test/dotnet/run_dotnet_7.sh (limited to 'test/dotnet') diff --git a/test/dotnet/build_dotnet_7.sh b/test/dotnet/build_dotnet_7.sh new file mode 100644 index 0000000..11c575b --- /dev/null +++ b/test/dotnet/build_dotnet_7.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +source dev-container-features-test-lib + +pushd example_project +check "dotnet restore" dotnet restore +check "dotnet build" dotnet build diff --git a/test/dotnet/run_dotnet_7.sh b/test/dotnet/run_dotnet_7.sh new file mode 100644 index 0000000..40d7b72 --- /dev/null +++ b/test/dotnet/run_dotnet_7.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +source dev-container-features-test-lib + +pushd example_project +check "dotnet run" bash -c "dotnet run | grep 'Inception'" diff --git a/test/dotnet/scenarios.json b/test/dotnet/scenarios.json index f865e60..f4127f2 100644 --- a/test/dotnet/scenarios.json +++ b/test/dotnet/scenarios.json @@ -56,5 +56,21 @@ "runtimeOnly": true } } + }, + "build_dotnet_7": { + "image": "ubuntu:jammy", + "features": { + "dotnet": { + "version": "7" + } + } + }, + "run_dotnet_7": { + "image": "ubuntu:jammy", + "features": { + "dotnet": { + "version": "7" + } + } } } \ No newline at end of file -- cgit v1.2.3