diff options
Diffstat (limited to 'run')
| -rwxr-xr-x | run/test/subs_in_out | 2 | ||||
| -rwxr-xr-x | run/tools/dcpmap | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/run/test/subs_in_out b/run/test/subs_in_out index 513294d1..2bf4fea4 100755 --- a/run/test/subs_in_out +++ b/run/test/subs_in_out @@ -2,7 +2,7 @@ export LD_LIBRARY_PATH=build/src:build/asdcplib/src:$LD_LIBRARY_PATH # SIP stops this being passed in from the caller's environment -export DYLD_LIBRARY_PATH=/Users/ci/osx-environment/x86_64/10.10/lib +export DYLD_LIBRARY_PATH=/Users/ci/osx-environment/x86_64/10.10/lib:/Users/ci/workspace/lib if [ "$1" == "--debug" ]; then shift gdb --args build/test/subs_in_out "$@" diff --git a/run/tools/dcpmap b/run/tools/dcpmap new file mode 100755 index 00000000..ab236329 --- /dev/null +++ b/run/tools/dcpmap @@ -0,0 +1,16 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +top=$DIR/../.. +export LIBDCP_RESOURCES=$top + +export LD_LIBRARY_PATH=$top/build/src:build/asdcplib/src:$LD_LIBRARY_PATH +if [ "$1" == "--debug" ]; then + shift + gdb --args $top/build/tools/dcpmap "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes $top/build/tools/dcpmap "$@" +else + $top/build/tools/dcpmap "$@" +fi |
