aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 11:15:11 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 11:15:11 +0300
commit1a91d3bf13a8d16b3975b119c5603bc563c1890c (patch)
tree5c322f84d46df2e0e727acda65fb0b4e565f6106
parenta091bc67ddee6f5b96aaf75b5bfab8b30fe0c41d (diff)
Copy project asserts
-rw-r--r--test/dotnet/assert_build_project.sh9
-rw-r--r--test/dotnet/assert_run_project.sh8
2 files changed, 17 insertions, 0 deletions
diff --git a/test/dotnet/assert_build_project.sh b/test/dotnet/assert_build_project.sh
new file mode 100644
index 0000000..11c575b
--- /dev/null
+++ b/test/dotnet/assert_build_project.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/assert_run_project.sh b/test/dotnet/assert_run_project.sh
new file mode 100644
index 0000000..40d7b72
--- /dev/null
+++ b/test/dotnet/assert_run_project.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'"