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 swig generated shared library
17 mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.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
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 omnithread library files
60 gromnidir=@omnithread_LIBDIRPATH@
62 # Where to find gruel library files
63 grueldir=@gruel_LIBDIRPATH@
65 # Where to find gnuradio core's library files
66 grcoredir=@gnuradio_core_LIBDIRPATH@
68 # Construct search path for python modules
69 # Check each one to make sure it's not "" before adding
71 for dir in $gromnidir $grcoredir $grueldir
75 if [ "$grlibdir" = "" ]
79 grlibdir="$dir:$grlibdir"
84 # Add 'mylibdir' to the start of the library load path, to get local
85 # (to this component) created libraries
87 # Where to find pre-installed libraries
88 withlibdirs=@with_LIBDIRPATH@
92 # Special Code for executing on Darwin / Mac OS X only
93 if [ "$DYLD_LIBRARY_PATH" = "" ]
95 DYLD_LIBRARY_PATH=$mylibdir
97 DYLD_LIBRARY_PATH=$mylibdir:$DYLD_LIBRARY_PATH
99 # DYLD_LIBRARY_PATH will not be empty now
100 # Add the grlibdir paths to the front of any library load variable
101 if [ "$grlibdir" != "" ]
103 DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
105 # Add the withdirs paths to the end of any library load variable
106 if [ "$withlibdirs" != "" ]
108 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$withlibdirs
110 export DYLD_LIBRARY_PATH
113 # Special Code for executing on Win32 variants only
120 # PATH will not be empty now
121 # Add the grlibdir paths to the front of any library load variable
122 if [ "$grlibdir" != "" ]
126 # Add the withdirs paths to the end of any library load variable
127 if [ "$withlibdirs" != "" ]
129 PATH=$PATH:$withlibdirs
135 # Don't load user or system prefs
137 export GR_DONT_LOAD_PREFS
139 # Run everything that matches qa_*.py and return the final result.
142 for file in $3/qa_*.py
149 if [ $r -ge 128 ] # killed by a signal