commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11068 - gnuradio/branches/developers/eb/vrt/gr-vrt/sr


From: eb
Subject: [Commit-gnuradio] r11068 - gnuradio/branches/developers/eb/vrt/gr-vrt/src
Date: Wed, 20 May 2009 01:02:17 -0600 (MDT)

Author: eb
Date: 2009-05-20 01:02:17 -0600 (Wed, 20 May 2009)
New Revision: 11068

Added:
   gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_vrt.py
Removed:
   gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_usrp2.py
Modified:
   gnuradio/branches/developers/eb/vrt/gr-vrt/src/run_tests.in
   gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.cc
   gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.h
Log:
checkpoint

Copied: gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_vrt.py (from rev 
11066, gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_usrp2.py)
===================================================================
--- gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_vrt.py                    
        (rev 0)
+++ gnuradio/branches/developers/eb/vrt/gr-vrt/src/qa_vrt.py    2009-05-20 
07:02:17 UTC (rev 11068)
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+#
+# Copyright 2005,2008,2009 Free Software Foundation, Inc.
+# 
+# This file is part of GNU Radio
+# 
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+# 
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+# 
+
+from gnuradio import gr, gr_unittest
+import vrt
+
+class qa_vrt(gr_unittest.TestCase):
+
+    def setUp(self):
+        self.tb = gr.top_block()
+
+    def tearDown(self):
+        self.tb = None
+
+    def test_000_nop (self):
+        """Just see if we can import the module...
+        They may not have a VRT connected, etc.  Don't try to run anything"""
+        pass
+    
+if __name__ == '__main__':
+    gr_unittest.main ()

Modified: gnuradio/branches/developers/eb/vrt/gr-vrt/src/run_tests.in
===================================================================
--- gnuradio/branches/developers/eb/vrt/gr-vrt/src/run_tests.in 2009-05-20 
06:42:08 UTC (rev 11067)
+++ gnuradio/branches/developers/eb/vrt/gr-vrt/src/run_tests.in 2009-05-20 
07:02:17 UTC (rev 11068)
@@ -5,13 +5,13 @@
 # 3rd parameter is path to Python QA directory
 
 # For OS/X
address@hidden@/usrp2/host/lib/legacy:@abs_top_builddir@/usrp2/host/lib/legacy/.libs:$DYLD_LIBRARY_PATH
address@hidden@/vrt/host/lib/legacy:@abs_top_builddir@/vrt/host/lib/legacy/.libs:$DYLD_LIBRARY_PATH
 export DYLD_LIBRARY_PATH
 
 # For Win32
address@hidden@/usrp2/host/lib/legacy:@abs_top_builddir@/usrp2/host/lib/legacy/.libs:$PATH
address@hidden@/vrt/host/lib/legacy:@abs_top_builddir@/vrt/host/lib/legacy/.libs:$PATH
 
 @top_builddir@/run_tests.sh \
-    @abs_top_srcdir@/gr-usrp2 \
-    @abs_top_builddir@/gr-usrp2 \
+    @abs_top_srcdir@/gr-vrt \
+    @abs_top_builddir@/gr-vrt \
     @srcdir@

Modified: 
gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.cc
===================================================================
--- gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.cc 
2009-05-20 06:42:08 UTC (rev 11067)
+++ gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.cc 
2009-05-20 07:02:17 UTC (rev 11068)
@@ -24,6 +24,12 @@
 #include <vrt_quadradio_source_32fc.h>
 #include <vrt/quadradio.h>
 
+vrt_quadradio_source_32fc_sptr
+vrt_make_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize)
+{
+  return gnuradio::get_initial_sptr(new vrt_quadradio_source_32fc(ip, 
rx_bufsize));
+}
+
 vrt_quadradio_source_32fc::vrt_quadradio_source_32fc(const std::string &ip, 
size_t rx_bufsize)
   : vrt_source_32fc("quadradio_source_32fc"),
     d_qr(vrt::quadradio::sptr(new vrt::quadradio(ip, rx_bufsize))),

Modified: 
gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.h
===================================================================
--- gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.h  
2009-05-20 06:42:08 UTC (rev 11067)
+++ gnuradio/branches/developers/eb/vrt/gr-vrt/src/vrt_quadradio_source_32fc.h  
2009-05-20 07:02:17 UTC (rev 11068)
@@ -39,8 +39,10 @@
   int                                  d_samples_per_pkt;
 
   vrt_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize);
-  bool my_stop();
 
+  friend vrt_quadradio_source_32fc_sptr
+  vrt_make_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize);
+
 public:
   virtual ~vrt_quadradio_source_32fc();
   virtual vrt::rx::sptr vrt_rx() const;





reply via email to

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