commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7880 - in gnuradio/branches/releases/3.1: . gnuradio-


From: jcorgan
Subject: [Commit-gnuradio] r7880 - in gnuradio/branches/releases/3.1: . gnuradio-core/src/python/gnuradio/gr
Date: Thu, 28 Feb 2008 18:57:26 -0700 (MST)

Author: jcorgan
Date: 2008-02-28 18:57:25 -0700 (Thu, 28 Feb 2008)
New Revision: 7880

Modified:
   
gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
   gnuradio/branches/releases/3.1/run_tests.sh.in
Log:
Applied changeset r7866 on trunk to release branch.

Modified: 
gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
===================================================================
--- 
gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
  2008-02-29 01:51:35 UTC (rev 7879)
+++ 
gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
  2008-02-29 01:57:25 UTC (rev 7880)
@@ -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/branches/releases/3.1/run_tests.sh.in
===================================================================
--- gnuradio/branches/releases/3.1/run_tests.sh.in      2008-02-29 01:51:35 UTC 
(rev 7879)
+++ gnuradio/branches/releases/3.1/run_tests.sh.in      2008-02-29 01:57:25 UTC 
(rev 7880)
@@ -4,6 +4,9 @@
 # Second argument is absolute path to top of component build directory
 # Third argument is component source directory for qa tests
 
+# 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
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]