summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/python/run_tests.in
diff options
context:
space:
mode:
authorJosh Blum2010-05-18 11:51:31 -0700
committerJosh Blum2010-05-18 11:51:31 -0700
commit935b9713694359862fd5721a2cf070ac072ce283 (patch)
treefd3bd402090d689ae114cb5e2968332edb1e20e4 /gr-howto-write-a-block/python/run_tests.in
parentb6f86944737975efde1275144c1c344e4a633146 (diff)
parenta39ca4f36cee81bb44f553c1a1d2045a29231e0b (diff)
downloadgnuradio-935b9713694359862fd5721a2cf070ac072ce283.tar.gz
gnuradio-935b9713694359862fd5721a2cf070ac072ce283.tar.bz2
gnuradio-935b9713694359862fd5721a2cf070ac072ce283.zip
Merge branch 'master' of http://gnuradio.org/git/gnuradio into uhd
Diffstat (limited to 'gr-howto-write-a-block/python/run_tests.in')
-rw-r--r--gr-howto-write-a-block/python/run_tests.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/gr-howto-write-a-block/python/run_tests.in b/gr-howto-write-a-block/python/run_tests.in
index 5b50509e1..2c32539c7 100644
--- a/gr-howto-write-a-block/python/run_tests.in
+++ b/gr-howto-write-a-block/python/run_tests.in
@@ -28,6 +28,30 @@ echo $PYTHONPATH
export PYTHONPATH
+case "@host_os@" in
+ darwin*)
+ # FIXME: Code for Darwin guessed but not tested
+ # Special Code for executing on Darwin / Mac OS X only
+ if [ "$DYLD_LIBRARY_PATH" = "" ]
+ then
+ DYLD_LIBRARY_PATH=$libbld/.libs
+ else
+ DYLD_LIBRARY_PATH=$libbld/.libs:$DYLD_LIBRARY_PATH
+ fi
+ export DYLD_LIBRARY_PATH
+ ;;
+ cygwin*|win*|mingw*)
+ # Special Code for executing on Win32 variants only
+ if [ "$PATH" = "" ]
+ then
+ PATH=$libbld/.libs
+ else
+ PATH=$libbld/.libs:$PATH
+ fi
+ export PATH
+ ;;
+esac
+
#
# This is the simple part...
# Run everything that matches qa_*.py and return the final result.