diff options
Diffstat (limited to 'docker/scripts/run-unit-tests.sh')
| -rwxr-xr-x | docker/scripts/run-unit-tests.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/scripts/run-unit-tests.sh b/docker/scripts/run-unit-tests.sh index 60a8955..a935db3 100755 --- a/docker/scripts/run-unit-tests.sh +++ b/docker/scripts/run-unit-tests.sh @@ -8,7 +8,8 @@ # Every test build is compiled first, so a compile error stops the run before # the simulator starts. One simulator then runs every device in turn. # monkeydo exits with 1 even when all tests pass, so the verdict comes from -# tools/ciq_test_report.py; the script fails if any device fails. +# tools/ciq_test_report.py, and the barcodes the tests dumped are decoded +# with zxing-cpp (tools/check_codes.py); the script fails if any device fails. set -euo pipefail # shellcheck source=ciq-env.sh source "$(dirname "${BASH_SOURCE[0]}")/ciq-env.sh" @@ -38,6 +39,8 @@ for device in "$@"; do >"${results}/${device}.log" 2>&1 || true python3 /work/tools/ciq_test_report.py "${results}/${device}.log" \ --device "${device}" --junit "${results}/${device}.xml" || failed=1 + # README 12.4 check 2: the barcodes the encoders produced must decode. + python3 /work/tools/check_codes.py "${results}/${device}.log" || failed=1 done if ((failed)); then |
