projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a839df0
)
macOS extensions to run/tests.
author
Carl Hetherington
<cth@carlh.net>
Tue, 29 Sep 2020 20:25:29 +0000
(22:25 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 12 Oct 2020 15:33:27 +0000
(17:33 +0200)
run/tests
patch
|
blob
|
history
diff --git
a/run/tests
b/run/tests
index afec5d2e79a729d1a1175ca8547c2b0e0a6b0a2f..3a7861ae0e132a360e0046315826f42439323003 100755
(executable)
--- a/
run/tests
+++ b/
run/tests
@@
-3,14
+3,27
@@
# e.g. --run_tests=foo
if [ "$(uname)" == "Linux" ]; then
# 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
# 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 $*
if [ "$1" == "--debug" ]; then
shift;
gdb --args build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*