summaryrefslogtreecommitdiff
path: root/gr-vocoder/python
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-18 06:28:05 -0700
committerJohnathan Corgan2011-07-18 10:04:07 -0700
commit30754b17df67a808e7c960d4f3c94a6b05557a17 (patch)
tree2799d8e68ba20d0858c2d9aaf35ed22dd904f990 /gr-vocoder/python
parenta6a51938fabe4cbcd6de596b479a4f8c343deb86 (diff)
downloadgnuradio-30754b17df67a808e7c960d4f3c94a6b05557a17.tar.gz
gnuradio-30754b17df67a808e7c960d4f3c94a6b05557a17.tar.bz2
gnuradio-30754b17df67a808e7c960d4f3c94a6b05557a17.zip
gr-vocoder: reimplemented gr-gsm-fr-vocoder in gr-vocoder
Diffstat (limited to 'gr-vocoder/python')
-rw-r--r--gr-vocoder/python/.gitignore6
-rw-r--r--gr-vocoder/python/Makefile.am12
-rw-r--r--gr-vocoder/python/__init__.py22
-rwxr-xr-xgr-vocoder/python/qa_gsm_full_rate.py35
-rw-r--r--gr-vocoder/python/run_tests.in10
5 files changed, 84 insertions, 1 deletions
diff --git a/gr-vocoder/python/.gitignore b/gr-vocoder/python/.gitignore
index 604b402c5..bf03975bb 100644
--- a/gr-vocoder/python/.gitignore
+++ b/gr-vocoder/python/.gitignore
@@ -1,3 +1,9 @@
/Makefile
/Makefile.in
+/.deps
+/.libs
+/*.la
+/*.lo
+/*.pyc
+/*.pyo
/run_tests
diff --git a/gr-vocoder/python/Makefile.am b/gr-vocoder/python/Makefile.am
index b1c7b44d5..b71a47618 100644
--- a/gr-vocoder/python/Makefile.am
+++ b/gr-vocoder/python/Makefile.am
@@ -21,4 +21,14 @@
include $(top_srcdir)/Makefile.common
-SUBDIRS =
+vocoderdir = $(grpythondir)/vocoder
+
+TESTS = run_tests
+
+noinst_PYTHON = \
+ qa_gsm_full_rate.py
+
+vocoder_PYTHON = \
+ __init__.py
+
+EXTRA_DIST += run_tests.in
diff --git a/gr-vocoder/python/__init__.py b/gr-vocoder/python/__init__.py
new file mode 100644
index 000000000..65185eb34
--- /dev/null
+++ b/gr-vocoder/python/__init__.py
@@ -0,0 +1,22 @@
+#
+# Copyright 2011 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 vocoder_swig import *
diff --git a/gr-vocoder/python/qa_gsm_full_rate.py b/gr-vocoder/python/qa_gsm_full_rate.py
new file mode 100755
index 000000000..4164a1965
--- /dev/null
+++ b/gr-vocoder/python/qa_gsm_full_rate.py
@@ -0,0 +1,35 @@
+#!/usr/bin/env python
+#
+# Copyright 2004,2007,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
+import gsm_full_rate
+
+class test_gsm_vocoder (gr_unittest.TestCase):
+
+ def setUp (self):
+ self.tb = gr.top_block ()
+
+ def tearDown (self):
+ self.tb = None
+
+if __name__ == '__main__':
+ gr_unittest.run(test_gsm_vocoder, "test_gsm_vocoder.xml")
diff --git a/gr-vocoder/python/run_tests.in b/gr-vocoder/python/run_tests.in
new file mode 100644
index 000000000..96eefc559
--- /dev/null
+++ b/gr-vocoder/python/run_tests.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# 1st parameter is absolute path to component source directory
+# 2nd parameter is absolute path to component build directory
+# 3rd parameter is path to Python QA directory
+
+@top_builddir@/run_tests.sh \
+ @abs_top_srcdir@/gr-gsm-fr-vocoder \
+ @abs_top_builddir@/gr-gsm-fr-vocoder \
+ @srcdir@