diff options
author | michaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-02-28 20:11:05 +0000 |
---|---|---|
committer | michaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-02-28 20:11:05 +0000 |
commit | 9905fe273103025303358c57b79e8c197d95da3b (patch) | |
tree | e8e3b4a12832073a6faea0c3a5d15b84bd6bb804 | |
parent | f2fa77f61b3d569e475cda12ca683fe419e7bfdd (diff) |
Fix for QA code for wavefile.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7866 221aa14e-8319-0410-a670-987f0aec2ac5
-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 7ce4ae92f9..f6359d82fb 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 35e24d794e..9b6e9bfad3 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 |