From 6960c3dfd2efef8043dd7522a268c4ff57253f22 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 22 Sep 2023 10:37:53 +0100 Subject: [PATCH] add runtime test capability --- tests/Verify.asyn.sh | 3 +++ tests/Verify.busy.sh | 3 +++ tests/_test_support_build.sh | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tests/Verify.asyn.sh create mode 100644 tests/Verify.busy.sh diff --git a/tests/Verify.asyn.sh b/tests/Verify.asyn.sh new file mode 100644 index 0000000..ce1ae74 --- /dev/null +++ b/tests/Verify.asyn.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "HELLO WORLD" \ No newline at end of file diff --git a/tests/Verify.busy.sh b/tests/Verify.busy.sh new file mode 100644 index 0000000..8ce1569 --- /dev/null +++ b/tests/Verify.busy.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo TODO add tests for busy support module diff --git a/tests/_test_support_build.sh b/tests/_test_support_build.sh index fd8b061..b52c99a 100755 --- a/tests/_test_support_build.sh +++ b/tests/_test_support_build.sh @@ -61,7 +61,6 @@ do_build() { --build-arg BASE=${BASE_VERSION} --build-arg REGISTRY=ghcr.io/epics-containers --target ${TARGET} - --layers -t test_image_only -f ${DOCKERFILE} " @@ -100,8 +99,12 @@ for dockerfile in ${THIS_FOLDER}/Dockerfile*; do # The above check is sufficient to show that the generic IOC will load and # run and that all the necessary runtime libraries are in place. # - # for more detailed testing add a Verify.xxx script where xxx is the + # for more detailed testing add a Verify.xxx.sh script where xxx is the # the same as the suffix on the Dockerfile. See Verify.asyn for an example. + VERIFY=Verify."${dockerfile#*.}" + if [[ -f ${THIS_FOLDER}/${VERIFY} ]] ; then + $THIS_FOLDER/${VERIFY} test_me + fi $docker stop -t0 test_me