From 41c0eb43e2177f3e22f4f72ca8e99d6580944b21 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Wed, 13 Mar 2013 19:04:21 -0400
Subject: blocks: removing udp_source/sink from gnuradio-core; now in
 gr-blocks.

---
 .../src/python/gnuradio/gr/qa_udp_sink_source.py   | 99 ----------------------
 1 file changed, 99 deletions(-)
 delete mode 100755 gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py

(limited to 'gnuradio-core/src/python')

diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py b/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py
deleted file mode 100755
index 0a719990e1..0000000000
--- a/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2008,2010 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
-from threading import Timer
-
-class test_udp_sink_source(gr_unittest.TestCase):
-
-    def setUp(self):
-        self.tb_snd = gr.top_block()
-        self.tb_rcv = gr.top_block()
-
-    def tearDown(self):
-        self.tb_rcv = None
-        self.tb_snd = None
-
-    def test_001(self):
-        port = 65500
-
-        n_data = 16
-        src_data = [float(x) for x in range(n_data)]
-        expected_result = tuple(src_data)
-        src = gr.vector_source_f(src_data)
-        udp_snd = gr.udp_sink( gr.sizeof_float, 'localhost', port )
-        self.tb_snd.connect( src, udp_snd )
-
-        udp_rcv = gr.udp_source( gr.sizeof_float, 'localhost', port )
-        dst = gr.vector_sink_f()
-        self.tb_rcv.connect( udp_rcv, dst )
-
-        self.tb_rcv.start()
-        self.tb_snd.run()
-        udp_snd.disconnect()
-        self.timeout = False
-        q = Timer(3.0,self.stop_rcv)
-        q.start()
-        self.tb_rcv.wait()
-        q.cancel()
-
-        result_data = dst.data()
-        self.assertEqual(expected_result, result_data)
-        self.assert_(not self.timeout)
-
-    def test_002(self):
-        udp_rcv = gr.udp_source( gr.sizeof_float, '0.0.0.0', 0, eof=False )
-        rcv_port = udp_rcv.get_port()
-
-        udp_snd = gr.udp_sink( gr.sizeof_float, '127.0.0.1', 65500 )
-        udp_snd.connect( 'localhost', rcv_port )
-
-        n_data = 16
-        src_data = [float(x) for x in range(n_data)]
-        expected_result = tuple(src_data)
-        src = gr.vector_source_f(src_data)
-        dst = gr.vector_sink_f()
-
-        self.tb_snd.connect( src, udp_snd )
-        self.tb_rcv.connect( udp_rcv, dst )
-
-        self.tb_rcv.start()
-        self.tb_snd.run()
-        udp_snd.disconnect()
-        self.timeout = False
-        q = Timer(3.0,self.stop_rcv)
-        q.start()
-        self.tb_rcv.wait()
-        q.cancel()
-
-        result_data = dst.data()
-        self.assertEqual(expected_result, result_data)
-        self.assert_(self.timeout)  # source ignores EOF?
-
-    def stop_rcv(self):
-        self.timeout = True
-        self.tb_rcv.stop()
-        #print "tb_rcv stopped by Timer"
-
-if __name__ == '__main__':
-    gr_unittest.run(test_udp_sink_source, "test_udp_sink_source.xml")
-
-- 
cgit v1.2.3