From e9c91414ade10f93bb23b33d48d30bf80045d7b1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Nov 2022 12:22:43 +0100 Subject: [PATCH] Check that the private test data repo is as we expect before running tests on Linux/macOS. --- run/tests | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/run/tests b/run/tests index 301a5df71..d34ae5b11 100755 --- a/run/tests +++ b/run/tests @@ -1,6 +1,9 @@ #!/bin/bash # # e.g. --run_tests=foo +set -e + +PRIVATE_GIT="a462680c7c6df8a84f9ee0bb7b4fb90055b96ca8" if [ "$(uname)" == "Linux" ]; then export LD_LIBRARY_PATH=build/src/lib:/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH @@ -27,6 +30,15 @@ if [ "$(uname)" == "Darwin" ]; then export PATH=$PATH:/Users/ci/workspace/bin fi +pushd ../dcpomatic-test-private +current=$(git rev-parse HEAD) +if [ "$current" != "$PRIVATE_GIT" ]; then + echo "Unexpected dcpomatic-test-private version" + exit 1 +fi +./check_sums || (echo "dcpomatic-test-private checksums are incorrect"; exit 1) +popd + if [ "$1" == "--debug" ]; then shift; gdb --args build/test/unit-tests --catch_system_errors=no --log_level=test_suite $* -- 2.30.2