Building containers runs unit and acceptance tests.
This commit is contained in:
7
service_definitions/public/gourichon_org/domain/test_unit.sh
Executable file
7
service_definitions/public/gourichon_org/domain/test_unit.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd -P "$(dirname "$(readlink -f "$0")" )"
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
dig gourichon.org @127.0.0.1 -p 57053 | grep -E 'gourichon.org.\s+[0-9]*\s+IN\s+A\s+82.64.72.120'
|
||||||
@@ -34,6 +34,8 @@ do
|
|||||||
podman-compose down || { fail_one "down" ; continue ; }
|
podman-compose down || { fail_one "down" ; continue ; }
|
||||||
podman-compose up -d || { fail_one "switch to newly built container" ; continue ; }
|
podman-compose up -d || { fail_one "switch to newly built container" ; continue ; }
|
||||||
|
|
||||||
|
bash test_unit.sh || { fail_one "unit test" ; }
|
||||||
|
bash test_acceptance.sh || { fail_one "acceptance test" ; continue ; }
|
||||||
done 3< <( find . -iname "compose.yaml" )
|
done 3< <( find . -iname "compose.yaml" )
|
||||||
|
|
||||||
echo "Overall result: $RC"
|
echo "Overall result: $RC"
|
||||||
|
|||||||
Reference in New Issue
Block a user