You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unix-ctest-launcher.sh-base 470B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # Set path to OpenViBE shared libraries
  3. uname_string=$(uname)
  4. export OV_PATH_ROOT="@DIST_BINDIR@/.."
  5. if [[ "$uname_string" == 'Darwin' ]]; then
  6. export DYLD_LIBRARY_PATH="@DIST_LIBDIR@/:$DYLD_LIBRARY_PATH"
  7. else
  8. export LD_LIBRARY_PATH="@DIST_LIBDIR@/:$LD_LIBRARY_PATH"
  9. fi
  10. # Execute ctest forwarding the arguments
  11. if [ -d unit-test ]; then
  12. pushd unit-test
  13. ctest $@
  14. popd
  15. fi
  16. if [ -d validation-test ]; then
  17. pushd validation-test
  18. ctest $@
  19. popd
  20. fi