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@
13 # Where to find my swig generated shared library
14 mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.libs
16 # Where to find my swig generated python module
17 mysrcdir=$1/src:$1/src/lib
19 # Where to find my hand written python modules
20 mypydir=$1/src:$1/src/python
22 # Where to find core's swig generated shared libraries,
23 # and hand generated swig glue
24 grswigdir=@gnuradio_core_SWIGDIRPATH@
26 # Where to find core's python modules
27 grpydir=@gnuradio_core_PYDIRPATH@
29 # Construct search path for python modules, if each exists
30 for dir in $grswigdir $grpydir
34 if [ "$PYTHONPATH" = "" ]
38 PYTHONPATH="$dir:$PYTHONPATH"
43 # Where to find pre-installed python modules
44 withpydirs=@with_PYDIRPATH@
46 # Add the 'with' dirs to the end of the python search path, if it exists
47 if [ "$withpydirs" != "" ]
49 PYTHONPATH="$PYTHONPATH:$withpydirs"
52 # Add the "my" dirs to the absolute front of the python search path
53 PYTHONPATH="$mylibdir:$mysrcdir:$mypydir:$PYTHONPATH"
56 # Where to find omnithread library files
57 gromnidir=@omnithread_LIBDIRPATH@
59 # Where to find gnuradio core's library files
60 grcoredir=@gnuradio_core_LIBDIRPATH@
62 # Construct search path for python modules
63 # Check each one to make sure it's not "" before adding
65 for dir in $gromnidir $grcoredir
69 if [ "$grlibdir" = "" ]
73 grlibdir="$dir:$grlibdir"
78 # Add the grlibdir paths to the front of any PATH variable
79 if [ "$grlibdir" != "" ]
82 if [ "$DYLD_LIBRARY_PATH" = "" ]
84 DYLD_LIBRARY_PATH=$grlibdir
86 DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
98 # Where to find pre-installed libraries
99 withlibdirs=@with_LIBDIRPATH@
101 # Add the withdirs paths to the end of any PATH variable
102 if [ "$withlibdirs" != "" ]
105 if [ "$DYLD_LIBRARY_PATH" = "" ]
107 DYLD_LIBRARY_PATH=$withlibdirs
109 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$withlibdirs
117 PATH=$PATH:$withlibdirs
121 export DYLD_LIBRARY_PATH
123 # Don't load user or system prefs
125 export GR_DONT_LOAD_PREFS
127 # Run everything that matches qa_*.py and return the final result.
130 for file in $3/qa_*.py