diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-29 22:25:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-12 17:33:27 +0200 |
| commit | 8ca9eff1fb09a873f651d8389c752ae3cef9df88 (patch) | |
| tree | 274cb1f17908aa7242dddc82bff63638be57ded8 | |
| parent | a839df0d13e463d833f43ed420e8cfd9dda94dff (diff) | |
macOS extensions to run/tests.
| -rwxr-xr-x | run/tests | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -3,14 +3,27 @@ # e.g. --run_tests=foo if [ "$(uname)" == "Linux" ]; then - export LD_LIBRARY_PATH=build/src/lib:/home/c.hetherington/lib:$LD_LIBRARY_PATH - rm -f build/test/openssl + export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH + rm -f build/test/dcpomatic2_openssl # This must be our patched openssl or tests will fail if [ ! -f build/test/dcpomatic2_openssl ]; then ln -s ../../../openssl/apps/openssl build/test/dcpomatic2_openssl fi fi +if [ "$(uname)" == "Darwin" ]; then + resources=build/Resources + rm -rf $resources + mkdir -p $resources + cp fonts/*.ttf $resources + cp -r ../libdcp/tags $resources + cp -r ../libdcp/xsd $resources + rm -f build/test/openssl + ln -s ../../../openssl/apps/openssl build/test/openssl + # SIP stops this being passed in from the caller's environment + export DYLD_LIBRARY_PATH=/Users/carl/osx-environment/64/lib +fi + if [ "$1" == "--debug" ]; then shift; gdb --args build/test/unit-tests --catch_system_errors=no --log_level=test_suite $* |
