From 85505f18040afbd75e31319de21ee92867c825c7 Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Wed, 1 Mar 2023 08:15:18 +0000 Subject: Use project asserts --- test/dotnet/install_additional_dotnet.sh | 3 +++ test/dotnet/install_dotnet_3.sh | 3 +++ test/dotnet/install_dotnet_6_bullseye.sh | 3 +++ test/dotnet/install_dotnet_6_focal.sh | 3 +++ test/dotnet/install_dotnet_7_bullseye.sh | 3 +++ test/dotnet/install_dotnet_7_jammy.sh | 3 +++ test/dotnet/test.sh | 3 +++ 7 files changed, 21 insertions(+) (limited to 'test/dotnet') diff --git a/test/dotnet/install_additional_dotnet.sh b/test/dotnet/install_additional_dotnet.sh index 6a0eb96..4e7565e 100644 --- a/test/dotnet/install_additional_dotnet.sh +++ b/test/dotnet/install_additional_dotnet.sh @@ -13,5 +13,8 @@ check "version 3.1.416 installed" bash -c 'dotnet --list-sdks | grep 3.1.416' # primary version plus 2 additional versions check "latest version installed" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 3' +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/install_dotnet_3.sh b/test/dotnet/install_dotnet_3.sh index 077b8dc..109e118 100644 --- a/test/dotnet/install_dotnet_3.sh +++ b/test/dotnet/install_dotnet_3.sh @@ -9,5 +9,8 @@ source dev-container-features-test-lib check "some major version of dotnet 3 is installed" bash -c "dotnet --list-sdks | grep '3\.[0-9]*\.[0-9]*'" +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/install_dotnet_6_bullseye.sh b/test/dotnet/install_dotnet_6_bullseye.sh index 7bef5cc..79954d0 100644 --- a/test/dotnet/install_dotnet_6_bullseye.sh +++ b/test/dotnet/install_dotnet_6_bullseye.sh @@ -9,5 +9,8 @@ source dev-container-features-test-lib check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'" +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/install_dotnet_6_focal.sh b/test/dotnet/install_dotnet_6_focal.sh index 7bef5cc..79954d0 100644 --- a/test/dotnet/install_dotnet_6_focal.sh +++ b/test/dotnet/install_dotnet_6_focal.sh @@ -9,5 +9,8 @@ source dev-container-features-test-lib check "some major version of dotnet 6 is installed" bash -c "dotnet --list-sdks | grep '6\.[0-9]*\.[0-9]*'" +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/install_dotnet_7_bullseye.sh b/test/dotnet/install_dotnet_7_bullseye.sh index 3f5b785..12b1f85 100644 --- a/test/dotnet/install_dotnet_7_bullseye.sh +++ b/test/dotnet/install_dotnet_7_bullseye.sh @@ -9,5 +9,8 @@ source dev-container-features-test-lib check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'" +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/install_dotnet_7_jammy.sh b/test/dotnet/install_dotnet_7_jammy.sh index 3f5b785..12b1f85 100644 --- a/test/dotnet/install_dotnet_7_jammy.sh +++ b/test/dotnet/install_dotnet_7_jammy.sh @@ -9,5 +9,8 @@ source dev-container-features-test-lib check "some major version of dotnet 7 is installed" bash -c "dotnet --list-sdks | grep '7\.[0-9]*\.[0-9]*'" +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults diff --git a/test/dotnet/test.sh b/test/dotnet/test.sh index ebbdca8..eb2079e 100755 --- a/test/dotnet/test.sh +++ b/test/dotnet/test.sh @@ -17,5 +17,8 @@ check "current link dotnet" /usr/local/dotnet/current/dotnet --info check "current link sdks" /usr/local/dotnet/current/dotnet --list-sdks check "current link version" /usr/local/dotnet/current/dotnet --version +./assert_build_project.sh +./assert_run_project.sh + # Report result reportResults -- cgit v1.2.3