BCIgui/Masterarbeit/openvibe/sdk-master/scripts/unix-ctest-launcher.sh-base

26 lines
470 B
Plaintext
Raw Normal View History

2021-10-14 13:47:35 +02:00
#!/bin/bash
# Set path to OpenViBE shared libraries
uname_string=$(uname)
export OV_PATH_ROOT="@DIST_BINDIR@/.."
if [[ "$uname_string" == 'Darwin' ]]; then
export DYLD_LIBRARY_PATH="@DIST_LIBDIR@/:$DYLD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH="@DIST_LIBDIR@/:$LD_LIBRARY_PATH"
fi
# Execute ctest forwarding the arguments
if [ -d unit-test ]; then
pushd unit-test
ctest $@
popd
fi
if [ -d validation-test ]; then
pushd validation-test
ctest $@
popd
fi