#!/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
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 $*