[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9667 - in gnuradio/branches/developers/jcorgan/dsss:
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r9667 - in gnuradio/branches/developers/jcorgan/dsss: . config gr-dsss gr-dsss/data gr-dsss/doc gr-dsss/include gr-dsss/include/dsss gr-dsss/lib gr-dsss/python |
Date: |
Sat, 27 Sep 2008 14:19:26 -0600 (MDT) |
Author: jcorgan
Date: 2008-09-27 14:19:25 -0600 (Sat, 27 Sep 2008)
New Revision: 9667
Added:
gnuradio/branches/developers/jcorgan/dsss/config/grc_gr_dsss.m4
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/test.h
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.cc
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.h
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/test_all.cc
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/__init__.py
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/dsss.i
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/qa_dsss.py
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/run_tests.in
Modified:
gnuradio/branches/developers/jcorgan/dsss/Makefile.common
gnuradio/branches/developers/jcorgan/dsss/config/Makefile.am
gnuradio/branches/developers/jcorgan/dsss/configure.ac
gnuradio/branches/developers/jcorgan/dsss/run_tests.sh.in
Log:
Add skeleton gr-dsss top-level component, using new layout
Modified: gnuradio/branches/developers/jcorgan/dsss/Makefile.common
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/Makefile.common 2008-09-27
15:43:59 UTC (rev 9666)
+++ gnuradio/branches/developers/jcorgan/dsss/Makefile.common 2008-09-27
20:19:25 UTC (rev 9667)
@@ -35,6 +35,11 @@
grpythondir = $(pythondir)/gnuradio
grpyexecdir = $(pyexecdir)/gnuradio
+# Install data files in the appropriate subdirectory
+# This usually ends up at:
+# ${prefix}/share/gnuradio
+grdatadir = $(datadir)/gnuradio
+
# Install the non-gnuradio usrp stuff in the appropriate subdirectory
# This usually ends up at:
# ${prefix}/lib/python${python_version}/site-packages/usrpm
@@ -119,3 +124,4 @@
# Base directory for documentation (docdir undefined in autoconf < 1.60)
gr_docdir = $(if $(docdir),$(docdir),$(datadir)/doc/$(PACKAGE))-$(VERSION)
+
Modified: gnuradio/branches/developers/jcorgan/dsss/config/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/config/Makefile.am
2008-09-27 15:43:59 UTC (rev 9666)
+++ gnuradio/branches/developers/jcorgan/dsss/config/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -56,6 +56,7 @@
grc_gr_audio_portaudio.m4 \
grc_gr_audio_windows.m4 \
grc_gr_comedi.m4 \
+ grc_gr_dsss.m4 \
grc_gr_gcell.m4 \
grc_gr_gpio.m4 \
grc_gr_gsm_fr_vocoder.m4 \
Added: gnuradio/branches/developers/jcorgan/dsss/config/grc_gr_dsss.m4
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/config/grc_gr_dsss.m4
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/config/grc_gr_dsss.m4
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,41 @@
+dnl Copyright 2008 Free Software Foundation, Inc.
+dnl
+dnl This file is part of GNU Radio
+dnl
+dnl GNU Radio is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 3, or (at your option)
+dnl any later version.
+dnl
+dnl GNU Radio is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+dnl GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with GNU Radio; see the file COPYING. If not, write to
+dnl the Free Software Foundation, Inc., 51 Franklin Street,
+dnl Boston, MA 02110-1301, USA.
+
+AC_DEFUN([GRC_GR_DSSS],[
+ GRC_ENABLE(gr-dsss)
+
+ dnl Don't do gr-dsss if gnuradio-core skipped
+ GRC_CHECK_DEPENDENCY(gr-dsss, gnuradio-core)
+
+ AC_CONFIG_FILES([\
+ gr-dsss/Makefile \
+ gr-dsss/data/Makefile \
+ gr-dsss/doc/Makefile \
+ gr-dsss/include/Makefile \
+ gr-dsss/include/dsss/Makefile \
+ gr-dsss/lib/Makefile \
+ gr-dsss/python/Makefile \
+ gr-dsss/python/run_tests \
+ ])
+
+ GRC_BUILD_CONDITIONAL(gr-dsss,[
+ dnl run_tests is created from run_tests.in. Make it executable.
+ AC_CONFIG_COMMANDS([run_tests_dsss], [chmod +x
gr-dsss/python/run_tests])
+ ])
+])
Modified: gnuradio/branches/developers/jcorgan/dsss/configure.ac
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/configure.ac 2008-09-27
15:43:59 UTC (rev 9666)
+++ gnuradio/branches/developers/jcorgan/dsss/configure.ac 2008-09-27
20:19:25 UTC (rev 9667)
@@ -269,6 +269,7 @@
GRC_OMNITHREAD dnl must come before gnuradio-core and mblock
GRC_GCELL
GRC_GNURADIO_CORE
+GRC_GR_DSSS
GRC_PMT
GRC_MBLOCK dnl this must come after GRC_PMT
GRC_USRP
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,24 @@
+#
+# Copyright 2008 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.
+#
+
+include $(top_srcdir)/Makefile.common
+
+SUBDIRS = data doc include lib python
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/data/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,25 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+ourdatadir = $(grdatadir)/dsss
+
+dist_ourdata_DATA =
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/doc/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,25 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+ourdocdir = $(gr_docdir)/dsss
+
+dist_ourdoc_DATA =
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,23 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+SUBDIRS = dsss
Property changes on:
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
Added:
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,26 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+ourincludedir = $(grincludedir)/dsss
+
+ourinclude_HEADERS = \
+ test.h
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/test.h
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/test.h
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/include/dsss/test.h
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,25 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2008 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.
+ */
+#ifndef INCLUDED_TEST_H
+#define INCLUDED_TEST_H
+
+#endif /* INCLUDED_TEST_H */
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
.deps
.libs
test_all
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,68 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_CPPFLAGS)
+
+# list of programs run by "make check" and "make distcheck"
+TESTS = test_all
+
+lib_LTLIBRARIES = \
+ libgr-dsss.la
+
+noinst_LTLIBRARIES = \
+ libgr-dsss-qa.la
+
+# ----------------------------------------------------------------
+# The main library
+# ----------------------------------------------------------------
+libgr_dsss_la_SOURCES =
+
+libgr_dsss_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
+
+libgr_dsss_la_LIBADD =
+
+# ----------------------------------------------------------------
+# The QA library. Note libdsss.la in LIBADD
+# ----------------------------------------------------------------
+libgr_dsss_qa_la_SOURCES = \
+ qa_dsss.cc
+
+libgr_dsss_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
+
+libgr_dsss_qa_la_LIBADD = \
+ libgr-dsss.la \
+ $(CPPUNIT_LIBS)
+
+# ----------------------------------------------------------------
+# headers that don't get installed
+# ----------------------------------------------------------------
+noinst_HEADERS = \
+ qa_dsss.h
+
+# ----------------------------------------------------------------
+# Our test program
+# ----------------------------------------------------------------
+noinst_PROGRAMS = \
+ test_all
+
+test_all_SOURCES = test_all.cc
+test_all_LDADD = libgr-dsss-qa.la
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.cc
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.cc
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.cc
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2008 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.
+ */
+
+/*
+ * This class gathers together all the test cases for the example
+ * directory into a single test suite. As you create new test cases,
+ * add them here.
+ */
+
+#include <qa_dsss.h>
+// #include <qa_....h>
+
+CppUnit::TestSuite *
+qa_dsss::suite()
+{
+ CppUnit::TestSuite *s = new CppUnit::TestSuite("dsss");
+
+ // s->addTest(...);
+
+ return s;
+}
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.h
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.h
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/qa_dsss.h
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,36 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2008 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 Example 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 Example Public License for more details.
+ *
+ * You should have received a copy of the GNU Example 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.
+ */
+
+#ifndef INCLUDED_QA_DSSS_H
+#define INCLUDED_QA_DSSS_H
+
+#include <cppunit/TestSuite.h>
+
+//! collect all the tests for the example directory
+
+class qa_dsss {
+ public:
+ //! return suite of tests for all of example directory
+ static CppUnit::TestSuite *suite ();
+};
+
+#endif /* INCLUDED_QA_DSSS_H */
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/test_all.cc
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/test_all.cc
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/lib/test_all.cc
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,38 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2002,2008 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.
+ */
+
+#include <cppunit/TextTestRunner.h>
+
+#include <qa_dsss.h>
+
+int
+main (int argc, char **argv)
+{
+
+ CppUnit::TextTestRunner runner;
+
+ runner.addTest (qa_dsss::suite ());
+
+ bool was_successful = runner.run ("", false);
+
+ return was_successful ? 0 : 1;
+}
Property changes on: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
.libs
.deps
*.pyc
dsss_swig.cc
dsss_swig.py
run_tests
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/Makefile.am
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/Makefile.am
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,98 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+include $(top_srcdir)/Makefile.common
+
+ourpythondir = $(grpythondir)/dsss
+ourpyexecdir = $(grpyexecdir)/dsss
+ourswigincludedir = $(grincludedir)/dsss/swig
+
+AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS)
+SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(SWIGGRFLAGS) $(STD_DEFINES_AND_INCLUDES)
\
+ $(WITH_INCLUDES) $(WITH_SWIG_INCLUDES)
+
+BUILT_SOURCES = $(swig_built_sources)
+
+MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc
+
+# Don't distribute the output of swig
+dist-hook:
+ @for file in $(swig_built_sources); do echo $(RM) $(distdir)/$$file;
done
+ @for file in $(swig_built_sources); do $(RM) $(distdir)/$$file; done
+
+
+TESTS = run_tests
+
+
+ALL_IFILES = \
+ $(LOCAL_IFILES) \
+ $(NON_LOCAL_IFILES)
+
+NON_LOCAL_IFILES = \
+ $(GNURADIO_I)
+
+LOCAL_IFILES = \
+ dsss.i
+
+
+# These files are built by SWIG. The first is the C++ glue.
+# The second is the python wrapper that loads the _dsss shared library
+# and knows how to call our extensions.
+
+swig_built_sources = \
+ dsss_swig.cc \
+ dsss_swig.py
+
+# This gets dsss.py installed in the right place.
+# Any hand-written python should be listed here too.
+ourpython_PYTHON = \
+ __init__.py \
+ dsss_swig.py
+
+# Python QA code gets listed here. It's not installed.
+noinst_PYTHON = \
+ qa_dsss.py
+
+# This library contains the swig generated glue
+ourpyexec_LTLIBRARIES = _dsss_swig.la
+
+# These are the source files that go into the shared library
+_dsss_swig_la_SOURCES = \
+ dsss_swig.cc
+
+# Dummy C++ source to cause C++ linking
+nodist_EXTRA__dsss_swig_la_SOURCES = dummy.cc
+
+# magic flags
+_dsss_swig_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
+
+# Link the swig generated code against our library and some python magic.
+_dsss_swig_la_LIBADD = \
+ ../lib/libgr-dsss.la \
+ $(PYTHON_LDFLAGS)
+
+
+dsss_swig.cc dsss_swig.py: $(LOCAL_IFILES) $(ALL_IFILES)
+ $(SWIG) $(SWIGPYTHONARGS) -module dsss_swig -o dsss_swig.cc
$(srcdir)/dsss.i
+
+
+# These swig headers get installed in ${prefix}/include/<component>/swig
+ourswiginclude_HEADERS = \
+ $(LOCAL_IFILES)
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/__init__.py
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/__init__.py
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/__init__.py
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,53 @@
+#
+# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+# The presence of this file turns this directory into a Python package
+
+# ----------------------------------------------------------------
+# Temporary workaround for ticket:181 (swig+python problem)
+import sys
+_RTLD_GLOBAL = 0
+try:
+ from dl import RTLD_GLOBAL as _RTLD_GLOBAL
+except ImportError:
+ try:
+ from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
+ except ImportError:
+ pass
+
+if _RTLD_GLOBAL != 0:
+ _dlopenflags = sys.getdlopenflags()
+ sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
+# ----------------------------------------------------------------
+
+
+# import swig generated symbols into the dsss namespace
+from dsss_swig import *
+
+# import any pure python here
+# from dsss_foo import bar
+# from dsss_baz import *
+
+
+# ----------------------------------------------------------------
+# Tail of workaround
+if _RTLD_GLOBAL != 0:
+ sys.setdlopenflags(_dlopenflags) # Restore original flags
+# ----------------------------------------------------------------
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/dsss.i
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/dsss.i
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/dsss.i
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,47 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+%feature("autodoc", "1"); // generate python docstrings
+
+%include "exception.i"
+%import "gnuradio.i" // the common stuff
+
+%{
+#include "gnuradio_swig_bug_workaround.h" // mandatory bug fix
+#include <stdexcept>
+%}
+
+// ----------------------------------------------------------------
+
+/*
+ * Gather all .i files in this directory together.
+ */
+
+%{
+
+// The .h files
+// #include <dsss/...h>
+
+%}
+
+// The .i files
+// %include <dsss_....i>
+
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/qa_dsss.py
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/qa_dsss.py
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/qa_dsss.py
2008-09-27 20:19:25 UTC (rev 9667)
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+#
+# Copyright 2008 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 dsss_swig
+
+class qa_dsss(gr_unittest.TestCase):
+
+ def setUp(self):
+ self.tb = gr.top_block()
+
+ def tearDown(self):
+ self.tb = None
+
+ def test_001_nop(self):
+ pass
+
+if __name__ == '__main__':
+ gr_unittest.main()
Property changes on:
gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/qa_dsss.py
___________________________________________________________________
Name: svn:executable
+ *
Added: gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/run_tests.in
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/run_tests.in
(rev 0)
+++ gnuradio/branches/developers/jcorgan/dsss/gr-dsss/python/run_tests.in
2008-09-27 20:19:25 UTC (rev 9667)
@@ -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
+
address@hidden@/run_tests.sh \
+ @abs_top_srcdir@/gr-dsss \
+ @abs_top_builddir@/gr-dsss \
+ @srcdir@
Modified: gnuradio/branches/developers/jcorgan/dsss/run_tests.sh.in
===================================================================
--- gnuradio/branches/developers/jcorgan/dsss/run_tests.sh.in 2008-09-27
15:43:59 UTC (rev 9666)
+++ gnuradio/branches/developers/jcorgan/dsss/run_tests.sh.in 2008-09-27
20:19:25 UTC (rev 9667)
@@ -14,13 +14,13 @@
export srcdir=$3
# Where to find my swig generated shared library
-mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.libs
+mylibdir=$2/src:$2/src/.libs:$2/src/lib:$2/src/lib/.libs:$2/python/.libs
# Where to find my swig generated python module
-mysrcdir=$1/src:$1/src/lib
+mysrcdir=$1/src:$1/src/lib:$1/python
# Where to find my hand written python modules
-mypydir=$1/src:$1/src/python
+mypydir=$1/src:$1/src/python:$1/python
# Where to find core's swig generated shared libraries,
# and hand generated swig glue
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9667 - in gnuradio/branches/developers/jcorgan/dsss: . config gr-dsss gr-dsss/data gr-dsss/doc gr-dsss/include gr-dsss/include/dsss gr-dsss/lib gr-dsss/python,
jcorgan <=