Skip to content

Commit

Permalink
add runtime test capability
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 22, 2023
1 parent a58654c commit 6960c3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/Verify.asyn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "HELLO WORLD"
3 changes: 3 additions & 0 deletions tests/Verify.busy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo TODO add tests for busy support module
7 changes: 5 additions & 2 deletions tests/_test_support_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6960c3d

Please sign in to comment.