From fa9c695256de1c7fe007ba5d6bb9b28b1deb5a5a Mon Sep 17 00:00:00 2001 From: cirakg Date: Tue, 20 Oct 2026 02:43:08 +0200 Subject: test(codes): compare with zxing-cpp reference rows and decode encoder output and screenshots Co-Authored-By: Claude Opus 5.5 --- docker/scripts/run-unit-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docker/scripts/run-unit-tests.sh') 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 -- cgit v1.2.3