diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-22 12:22:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-22 12:22:43 +0100 |
| commit | e9c91414ade10f93bb23b33d48d30bf80045d7b1 (patch) | |
| tree | d42bf92b5f4d859758a7cbc74e2873808268e52c /run | |
| parent | e37e2dc2a540c5ece43adbc510a29d176849ca88 (diff) | |
Check that the private test data repo is as we expect before running tests on Linux/macOS.
Diffstat (limited to 'run')
| -rwxr-xr-x | run/tests | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 $* |
