[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7122 - in gnuradio/branches/developers/jcorgan/t127:
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r7122 - in gnuradio/branches/developers/jcorgan/t127: config usrpdb/src |
Date: |
Tue, 11 Dec 2007 22:03:07 -0700 (MST) |
Author: jcorgan
Date: 2007-12-11 22:03:07 -0700 (Tue, 11 Dec 2007)
New Revision: 7122
Added:
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/qa_usrpdb.py
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/run_tests.in
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/usrpdb.i
Modified:
gnuradio/branches/developers/jcorgan/t127/config/grc_usrpdb.m4
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/Makefile.am
Log:
Added skeleton usrpdb library.
Modified: gnuradio/branches/developers/jcorgan/t127/config/grc_usrpdb.m4
===================================================================
--- gnuradio/branches/developers/jcorgan/t127/config/grc_usrpdb.m4
2007-12-12 04:14:45 UTC (rev 7121)
+++ gnuradio/branches/developers/jcorgan/t127/config/grc_usrpdb.m4
2007-12-12 05:03:07 UTC (rev 7122)
@@ -24,8 +24,12 @@
usrpdb/Makefile \
usrpdb/usrpdb.pc \
usrpdb/src/Makefile \
+ usrpdb/src/run_tests \
])
passed=yes
- GRC_BUILD_CONDITIONAL([usrpdb])
+ GRC_BUILD_CONDITIONAL([usrpdb],[
+ dnl run_tests is created from run_tests.in. Make it executable.
+ AC_CONFIG_COMMANDS([run_tests_usrpdb], [chmod +x usrpdb/src/run_tests])
+ ])
])
Property changes on: gnuradio/branches/developers/jcorgan/t127/usrpdb/src
___________________________________________________________________
Name: svn:ignore
- Makefile
Makefile.in
+ Makefile
Makefile.in
.deps
.libs
usrpdb.cc
usrpdb.py
run_tests
*.pyc
Modified: gnuradio/branches/developers/jcorgan/t127/usrpdb/src/Makefile.am
===================================================================
--- gnuradio/branches/developers/jcorgan/t127/usrpdb/src/Makefile.am
2007-12-12 04:14:45 UTC (rev 7121)
+++ gnuradio/branches/developers/jcorgan/t127/usrpdb/src/Makefile.am
2007-12-12 05:03:07 UTC (rev 7122)
@@ -19,4 +19,60 @@
# Boston, MA 02110-1301, USA.
#
-SUBDIRS=
\ No newline at end of file
+include $(top_srcdir)/Makefile.common
+
+# Install this stuff so that it ends up as the gnuradio.usrpdb module
+# This usually ends up at:
+# ${prefix}/lib/python${python_version}/site-packages/gnuradio
+
+ourpythondir = $(grpythondir)
+ourlibdir = $(grpyexecdir)
+
+EXTRA_DIST = run_tests.in
+TESTS = run_tests
+
+LOCAL_IFILES = \
+ $(top_srcdir)/usrpdb/src/usrpdb.i
+
+BUILT_SOURCES = \
+ usrpdb.cc \
+ usrpdb.py
+
+ourpython_PYTHON = \
+ usrpdb.py
+
+INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS)
+
+SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES)
+
+ourlib_LTLIBRARIES = _usrpdb.la
+
+_usrpdb_la_SOURCES = \
+ usrpdb.cc
+
+#grinclude_HEADERS = \
+# usrpdb_sink.h \
+# usrpdb_source.h
+
+swiginclude_HEADERS = \
+ $(LOCAL_IFILES)
+
+_usrpdb_la_LIBADD = \
+ $(PYTHON_LDFLAGS) \
+ -lstdc++
+
+_usrpdb_la_LDFLAGS = $(NO_UNDEFINED) -module
+
+usrpdb.cc usrpdb.py: $(LOCAL_IFILES)
+ $(SWIG) $(SWIGPYTHONARGS) -module usrpdb -o usrpdb.cc $(LOCAL_IFILES)
+
+# Don't distribute output of swig
+dist-hook:
+ @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
+ @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
+
+noinst_PYTHON = qa_usrpdb.py
+
+MOSTLYCLEANFILES = \
+ $(BUILT_SOURCES) *~ *.pyc
+
Added: gnuradio/branches/developers/jcorgan/t127/usrpdb/src/qa_usrpdb.py
===================================================================
--- gnuradio/branches/developers/jcorgan/t127/usrpdb/src/qa_usrpdb.py
(rev 0)
+++ gnuradio/branches/developers/jcorgan/t127/usrpdb/src/qa_usrpdb.py
2007-12-12 05:03:07 UTC (rev 7122)
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+#
+# Copyright 2005,2007 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 usrpdb
+
+class qa_usrpdb (gr_unittest.TestCase):
+
+ def setUp (self):
+ pass
+
+ def tearDown (self):
+ pass
+
+ def test_000_nop (self):
+ """Just see if we can import the module..."""
+ pass
+
+if __name__ == '__main__':
+ gr_unittest.main ()
Property changes on:
gnuradio/branches/developers/jcorgan/t127/usrpdb/src/qa_usrpdb.py
___________________________________________________________________
Name: svn:executable
+ *
Added: gnuradio/branches/developers/jcorgan/t127/usrpdb/src/run_tests.in
===================================================================
--- gnuradio/branches/developers/jcorgan/t127/usrpdb/src/run_tests.in
(rev 0)
+++ gnuradio/branches/developers/jcorgan/t127/usrpdb/src/run_tests.in
2007-12-12 05:03:07 UTC (rev 7122)
@@ -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@/usrpdb \
+ @abs_top_builddir@/usrpdb \
+ @srcdir@
Added: gnuradio/branches/developers/jcorgan/t127/usrpdb/src/usrpdb.i
===================================================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7122 - in gnuradio/branches/developers/jcorgan/t127: config usrpdb/src,
jcorgan <=