3 # First argument is absolute path to top of component source directory
4 # Second argument is absolute path to top of component build directory
5 # Third argument is component source directory for qa tests
7 # Absolute path to the top of the source directory
8 abs_top_srcdir=@abs_top_srcdir@
10 # Absolute path to the top of the build directory
11 abs_top_builddir=@abs_top_builddir@
16 # Where to find my C++ and swig generated shared libraries
17 mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.libs:$2/lib:$2/lib/.libs:$2/swig:$2/swig/.libs
19 # Where to find my swig generated python module
20 mysrcdir=$1/src:$1/src/lib
22 # Where to find my hand written python modules
23 mypydir=$1/src:$1/src/python:$1/python
25 # Where to find core's swig generated shared libraries,
26 # and hand generated swig glue
27 grswigdir=@gnuradio_core_SWIGDIRPATH@
29 # Where to find core's python modules
30 grpydir=@gnuradio_core_PYDIRPATH@
32 # Construct search path for python modules, if each exists
33 for dir in $grswigdir $grpydir
37 if [ "$PYTHONPATH" = "" ]
41 PYTHONPATH="$dir:$PYTHONPATH"
46 # Where to find pre-installed python modules
47 withpydirs=@with_PYDIRPATH@
49 # Add the 'with' dirs to the end of the python search path, if it exists
50 if [ "$withpydirs" != "" ]
52 PYTHONPATH="$PYTHONPATH:$withpydirs"
55 # Add the "my" dirs to the absolute front of the python search path
56 PYTHONPATH="$mylibdir:$mysrcdir:$mypydir:$PYTHONPATH"
59 # Where to find gruel library files
60 grueldir=@gruel_LIBDIRPATH@
62 # Where to find gnuradio core's library files
63 grcoredir=@gnuradio_core_LIBDIRPATH@
65 # Construct search path for python modules
66 # Check each one to make sure it's not "" before adding
68 for dir in $grcoredir $grueldir
72 if [ "$grlibdir" = "" ]
76 grlibdir="$dir:$grlibdir"
81 # Add 'mylibdir' to the start of the library load path, to get local
82 # (to this component) created libraries
84 # Where to find pre-installed libraries
85 withlibdirs=@with_LIBDIRPATH@
89 # Special Code for executing on Darwin / Mac OS X only
90 if [ "$DYLD_LIBRARY_PATH" = "" ]
92 DYLD_LIBRARY_PATH=$mylibdir
94 DYLD_LIBRARY_PATH=$mylibdir:$DYLD_LIBRARY_PATH
96 # DYLD_LIBRARY_PATH will not be empty now
97 # Add the grlibdir paths to the front of any library load variable
98 if [ "$grlibdir" != "" ]
100 DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
102 # Add the withdirs paths to the end of any library load variable
103 if [ "$withlibdirs" != "" ]
105 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$withlibdirs
107 export DYLD_LIBRARY_PATH
110 # Special Code for executing on Win32 variants only
117 # PATH will not be empty now
118 # Add the grlibdir paths to the front of any library load variable
119 if [ "$grlibdir" != "" ]
123 # Add the withdirs paths to the end of any library load variable
124 if [ "$withlibdirs" != "" ]
126 PATH=$PATH:$withlibdirs
132 # Don't load user or system prefs
134 export GR_DONT_LOAD_PREFS
136 # Run everything that matches qa_*.py and return the final result.
139 for file in $3/qa_*.py
146 if [ $r -ge 128 ] # killed by a signal