commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r3950 - gnuradio/branches/developers/jcorgan/hier/gnur


From: jcorgan
Subject: [Commit-gnuradio] r3950 - gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr
Date: Tue, 7 Nov 2006 18:36:06 -0700 (MST)

Author: jcorgan
Date: 2006-11-07 18:36:06 -0700 (Tue, 07 Nov 2006)
New Revision: 3950

Added:
   
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_runtime.py
Modified:
   
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
Log:
Work in progress.

Modified: 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
===================================================================
--- 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
    2006-11-08 00:21:56 UTC (rev 3949)
+++ 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
    2006-11-08 01:36:06 UTC (rev 3950)
@@ -169,20 +169,5 @@
        hblock.define_component("nop1", nop1)
        self.assertRaises(ValueError, lambda: hblock.connect("nop1", 0, 
"self-out", 0))
 
-    def test_018_runtime_run(self):
-       hblock = gr.hier_block2("test_block", 
-                               gr.io_signature(0,0,0), 
-                               gr.io_signature(0,0,0))
-       runtime = gr.runtime(hblock)
-       runtime.run()
-
-    def test_019_runtime_run_twice(self):
-       hblock = gr.hier_block2("test_block", 
-                               gr.io_signature(0,0,0), 
-                               gr.io_signature(0,0,0))
-       runtime = gr.runtime(hblock)
-       runtime.run()
-       self.assertRaises(RuntimeError, lambda: runtime.run())
-    
 if __name__ == "__main__":
     gr_unittest.main()

Added: 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_runtime.py
===================================================================
--- 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_runtime.py
                                (rev 0)
+++ 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_runtime.py
        2006-11-08 01:36:06 UTC (rev 3950)
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+
+from gnuradio import gr, gr_unittest
+
+class test_runtime(gr_unittest.TestCase):
+
+    def setUp(self):
+       pass
+       
+    def tearDown(self):
+       pass
+
+    def test_001_run(self):
+       hblock = gr.hier_block2("test_block", 
+                               gr.io_signature(0,0,0), 
+                               gr.io_signature(0,0,0))
+       runtime = gr.runtime(hblock)
+       runtime.run()
+
+    def test_019_run_twice(self):
+       hblock = gr.hier_block2("test_block", 
+                               gr.io_signature(0,0,0), 
+                               gr.io_signature(0,0,0))
+       runtime = gr.runtime(hblock)
+       runtime.run()
+       self.assertRaises(RuntimeError, lambda: runtime.run())
+    
+if __name__ == "__main__":
+    gr_unittest.main()


Property changes on: 
gnuradio/branches/developers/jcorgan/hier/gnuradio-core/src/python/gnuradio/gr/qa_runtime.py
___________________________________________________________________
Name: svn:executable
   + *





reply via email to

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