summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-29 23:17:24 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-29 23:17:24 +0200
commit98fa5c8c95587e1b016a1432371d58288c94b145 (patch)
tree00684b32347c5df4636b80c8871e22f942d44187
parent66f66acc99d6de49a038735a2d3236c7a8ceedd3 (diff)
Try a little harder to make sure we use the patched openssl for
unit tests.
-rwxr-xr-xrun/tests8
1 files changed, 7 insertions, 1 deletions
diff --git a/run/tests b/run/tests
index 97eef411f..8b54d2b45 100755
--- a/run/tests
+++ b/run/tests
@@ -2,7 +2,13 @@
#
# e.g. --run_tests=foo
-export LD_LIBRARY_PATH=build/src/lib:/home/c.hetherington/lib:$LD_LIBRARY_PATH
+if [ "$(uname)" == "Linux" ]; then
+ export LD_LIBRARY_PATH=build/src/lib:/home/c.hetherington/lib:$LD_LIBRARY_PATH
+ rm -f build/test/openssl
+ # This must be our patched openssl or tests will fail
+ ln -s ../../../openssl/apps/openssl build/test/dcpomatic2_openssl
+fi
+
if [ "$1" == "--debug" ]; then
shift;
gdb --args build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*