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 'mylibdir' to the start of the library load path, to get local
79 # (to this component) created libraries
81 # Where to find pre-installed libraries
82 withlibdirs=@with_LIBDIRPATH@
86 # Special Code for executing on Darwin / Mac OS X only
87 if [ "$DYLD_LIBRARY_PATH" = "" ]
89 DYLD_LIBRARY_PATH=$mylibdir
91 DYLD_LIBRARY_PATH=$mylibdir:$DYLD_LIBRARY_PATH
93 # DYLD_LIBRARY_PATH will not be empty now
94 # Add the grlibdir paths to the front of any library load variable
95 if [ "$grlibdir" != "" ]
97 DYLD_LIBRARY_PATH=$grlibdir:$DYLD_LIBRARY_PATH
99 # Add the withdirs paths to the end of any library load variable
100 if [ "$withlibdirs" != "" ]
102 DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$withlibdirs
104 export DYLD_LIBRARY_PATH
107 # Special Code for executing on Win32 variants only
114 # PATH will not be empty now
115 # Add the grlibdir paths to the front of any library load variable
116 if [ "$grlibdir" != "" ]
120 # Add the withdirs paths to the end of any library load variable
121 if [ "$withlibdirs" != "" ]
123 PATH=$PATH:$withlibdirs
129 # Don't load user or system prefs
131 export GR_DONT_LOAD_PREFS
133 # Run everything that matches qa_*.py and return the final result.
136 for file in $3/qa_*.py