commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r5059 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r5059 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Fri, 20 Apr 2007 17:08:45 -0600 (MDT)

Author: gnychis
Date: 2007-04-20 17:08:45 -0600 (Fri, 20 Apr 2007)
New Revision: 5059

Added:
   gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.cc
   gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.h
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/test_inband.cc
Modified:
   gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am
Log:
adding in base template for test code and ensuring it compiles as a place to 
start and rollback on


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am    
    2007-04-20 21:42:24 UTC (rev 5058)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am    
    2007-04-20 23:08:45 UTC (rev 5059)
@@ -22,15 +22,17 @@
 
 INCLUDES =     \
        $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) $(MBLOCK_INCLUDES) \
-       $(USRP_INCLUDES) $(BOOST_CFLAGS)
+       $(USRP_INCLUDES) $(BOOST_CFLAGS) $(CPPUNIT_INCLUDES)
 
+TESTS = test_inband
+
 EXTRA_DIST =                           
 
-noinst_LTLIBRARIES = libinband.la
+noinst_LTLIBRARIES = libinband.la libinband-qa.la
 
 
 BUILT_SOURCES =                                \
-       usrp_server_mbh.cc              
+       usrp_server_mbh.cc
 
 usrp_server_mbh.cc : usrp_server.mbh
        $(COMPILE_MBH) usrp_server.mbh usrp_server_mbh.cc
@@ -41,12 +43,38 @@
        usrp_server.cc                  
 
 libinband_la_LIBADD =                  \
-       $(MBLOCK_LA)                    
+       $(MBLOCK_LA)                    \
+       $(PMT_LA)                                       \
+       -lstdc++
 
 
 include_HEADERS =                      \
        usrp_server.h                   
 
+noinst_HEADERS =      \
+       qa_inband.h
+
+# Build the qa code in its own library
+
+libinband_qa_la_SOURCES =   \
+       qa_inband.cc
+
+# magic flags
+libinband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
+
+# link against c++ standard library
+libinband_qa_la_LIBADD =    \
+       libinband.la            \
+       $(CPPUNIT_LIBS) \
+       -lstdc++
+
+noinst_PROGRAMS =                      \
+       test_inband
+
+test_inband_SOURCES = test_inband.cc
+test_inband_LDADD       = libinband-qa.la
+
+
 MOSTLYCLEANFILES = \
        $(BUILT_SOURCES) *~ *.pyc
 

Added: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.cc   
                            (rev 0)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.cc   
    2007-04-20 23:08:45 UTC (rev 5059)
@@ -0,0 +1,30 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 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 2, 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 <qa_inband.h>
+
+CppUnit::TestSuite *
+qa_inband::suite()
+{
+  CppUnit::TestSuite   *s = new CppUnit::TestSuite("inband");
+
+  return s;
+}


Property changes on: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.cc
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.h
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.h    
                            (rev 0)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.h    
    2007-04-20 23:08:45 UTC (rev 5059)
@@ -0,0 +1,35 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 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 2, 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.
+ */
+
+#ifndef INCLUDED_QA_INBAND_H
+#define INCLUDED_QA_INBAND_H
+
+#include <cppunit/TestSuite.h>
+
+//! collect all the tests for the user server
+
+class qa_inband {
+ public:
+  //! return suite of tests for all of usrp server
+  static CppUnit::TestSuite *suite();
+};
+
+#endif /* INCLUDED_QA_INBAND_H */


Property changes on: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband.h
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/test_inband.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/test_inband.cc 
                            (rev 0)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/test_inband.cc 
    2007-04-20 23:08:45 UTC (rev 5059)
@@ -0,0 +1,36 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 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 2, 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 <cppunit/TextTestRunner.h>
+#include <qa_inband.h>
+
+int 
+main(int argc, char **argv)
+{
+  
+  CppUnit::TextTestRunner      runner;
+
+//  runner.addTest(qa_inband::suite ());
+  
+  bool was_successful = runner.run("", false);
+
+  return was_successful ? 0 : 1;
+}


Property changes on: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/test_inband.cc
___________________________________________________________________
Name: svn:eol-style
   + native





reply via email to

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