diff options
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py | 6 | ||||
-rw-r--r-- | run_tests.sh.in | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py index 7ce4ae92f..f6359d82f 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py @@ -25,6 +25,8 @@ from gnuradio import gr, gr_unittest import os from os.path import getsize +g_in_file = os.path.join (os.getenv ("srcdir"), "test_16bit_1chunk.wav") + class qa_wavefile(gr_unittest.TestCase): def setUp (self): @@ -34,12 +36,12 @@ class qa_wavefile(gr_unittest.TestCase): self.tb = None def test_001_checkwavread (self): - wf = gr.wavfile_source("./test_16bit_1chunk.wav") + wf = gr.wavfile_source(g_in_file) self.assertEqual(wf.sample_rate(), 8000) # disabled. Fails on PPC def xtest_002_checkwavcopy (self): - infile = "test_16bit_1chunk.wav" + infile = g_in_file outfile = "test_out.wav" wf_in = gr.wavfile_source(infile) diff --git a/run_tests.sh.in b/run_tests.sh.in index 35e24d794..9b6e9bfad 100644 --- a/run_tests.sh.in +++ b/run_tests.sh.in @@ -10,6 +10,9 @@ abs_top_srcdir=@abs_top_srcdir@ # Absolute path to the top of the build directory abs_top_builddir=@abs_top_builddir@ +# current QA srcdir +export srcdir=$3 + # Where to find my swig generated shared library mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.libs |