[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7866 - in gnuradio/trunk: . gnuradio-core/src/python/
From: |
michaelld |
Subject: |
[Commit-gnuradio] r7866 - in gnuradio/trunk: . gnuradio-core/src/python/gnuradio/gr |
Date: |
Thu, 28 Feb 2008 13:11:06 -0700 (MST) |
Author: michaelld
Date: 2008-02-28 13:11:05 -0700 (Thu, 28 Feb 2008)
New Revision: 7866
Modified:
gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
gnuradio/trunk/run_tests.sh.in
Log:
Fix for QA code for wavefile.
Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
2008-02-28 19:40:12 UTC (rev 7865)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
2008-02-28 20:11:05 UTC (rev 7866)
@@ -25,6 +25,8 @@
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 @@
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)
Modified: gnuradio/trunk/run_tests.sh.in
===================================================================
--- gnuradio/trunk/run_tests.sh.in 2008-02-28 19:40:12 UTC (rev 7865)
+++ gnuradio/trunk/run_tests.sh.in 2008-02-28 20:11:05 UTC (rev 7866)
@@ -10,6 +10,9 @@
# Absolute path to the top of the build directory
address@hidden@
+# 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7866 - in gnuradio/trunk: . gnuradio-core/src/python/gnuradio/gr,
michaelld <=