[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6995 - in gnuradio/branches/developers/eb/gcell: . sr
From: |
eb |
Subject: |
[Commit-gnuradio] r6995 - in gnuradio/branches/developers/eb/gcell: . src/apps src/lib |
Date: |
Sun, 18 Nov 2007 22:43:40 -0700 (MST) |
Author: eb
Date: 2007-11-18 22:43:39 -0700 (Sun, 18 Nov 2007)
New Revision: 6995
Added:
gnuradio/branches/developers/eb/gcell/Makefile.common
gnuradio/branches/developers/eb/gcell/src/apps/test_all.cc
gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.cc
gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.h
Modified:
gnuradio/branches/developers/eb/gcell/Makefile.am
gnuradio/branches/developers/eb/gcell/src/apps/Makefile.am
gnuradio/branches/developers/eb/gcell/src/lib/Makefile.am
gnuradio/branches/developers/eb/gcell/src/lib/gc_jd_stack.c
Log:
Added QA framework. Sucessfully runs zero tests ;)
Modified: gnuradio/branches/developers/eb/gcell/Makefile.am
===================================================================
--- gnuradio/branches/developers/eb/gcell/Makefile.am 2007-11-19 04:48:01 UTC
(rev 6994)
+++ gnuradio/branches/developers/eb/gcell/Makefile.am 2007-11-19 05:43:39 UTC
(rev 6995)
@@ -18,10 +18,10 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
+include $(top_srcdir)/Makefile.common
+
ACLOCAL_AMFLAGS = -I config
-# include $(top_srcdir)/Makefile.common
-
EXTRA_DIST = \
configure \
config.h.in
Added: gnuradio/branches/developers/eb/gcell/Makefile.common
===================================================================
--- gnuradio/branches/developers/eb/gcell/Makefile.common
(rev 0)
+++ gnuradio/branches/developers/eb/gcell/Makefile.common 2007-11-19
05:43:39 UTC (rev 6995)
@@ -0,0 +1,23 @@
+# -*- Makefile -*-
+#
+# 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 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.
+#
+
+STD_DEFINES_AND_INCLUDES= -I$(top_srcdir)/src/include -I$(top_srcdir)/src/lib
+
Modified: gnuradio/branches/developers/eb/gcell/src/apps/Makefile.am
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/apps/Makefile.am 2007-11-19
04:48:01 UTC (rev 6994)
+++ gnuradio/branches/developers/eb/gcell/src/apps/Makefile.am 2007-11-19
05:43:39 UTC (rev 6995)
@@ -17,3 +17,19 @@
# 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
+
+INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES)
+
+# list of programs run by "make check" and "make distcheck"
+
+TESTS = test_all
+
+noinst_PROGRAMS = \
+ test_all
+
+
+LDADD = $(top_builddir)/src/lib/libgcell-qa.la
$(top_builddir)/src/lib/libgcell.la
+
+test_all_SOURCES = test_all.cc
Added: gnuradio/branches/developers/eb/gcell/src/apps/test_all.cc
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/apps/test_all.cc
(rev 0)
+++ gnuradio/branches/developers/eb/gcell/src/apps/test_all.cc 2007-11-19
05:43:39 UTC (rev 6995)
@@ -0,0 +1,38 @@
+/* -*- 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 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 <cppunit/TextTestRunner.h>
+
+#include <qa_lib.h>
+
+
+int
+main(int argc, char **argv)
+{
+
+ CppUnit::TextTestRunner runner;
+
+ runner.addTest(qa_lib::suite());
+
+ bool was_successful = runner.run("", false);
+
+ return was_successful ? 0 : 1;
+}
Property changes on: gnuradio/branches/developers/eb/gcell/src/apps/test_all.cc
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: gnuradio/branches/developers/eb/gcell/src/lib/Makefile.am
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/lib/Makefile.am 2007-11-19
04:48:01 UTC (rev 6994)
+++ gnuradio/branches/developers/eb/gcell/src/lib/Makefile.am 2007-11-19
05:43:39 UTC (rev 6995)
@@ -18,13 +18,12 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-# include $(top_srcdir)/Makefile.common
+include $(top_srcdir)/Makefile.common
-# INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES)
-INCLUDES = -I$(top_srcdir)/src/include $(STD_DEFINES_AND_INCLUDES)
$(CPPUNIT_INCLUDES)
+INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES)
-lib_LTLIBRARIES = libgcell.la
+lib_LTLIBRARIES = libgcell.la libgcell-qa.la
libgcell_la_SOURCES = \
gc_job_manager.cc \
@@ -32,3 +31,9 @@
gc_jd_stack.c
+libgcell_qa_la_SOURCES = \
+ qa_lib.cc
+
+libgcell_qa_la_LIBADD = \
+ libgcell.la \
+ $(CPPUNIT_LIBS)
Modified: gnuradio/branches/developers/eb/gcell/src/lib/gc_jd_stack.c
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/lib/gc_jd_stack.c 2007-11-19
04:48:01 UTC (rev 6994)
+++ gnuradio/branches/developers/eb/gcell/src/lib/gc_jd_stack.c 2007-11-19
05:43:39 UTC (rev 6995)
@@ -21,8 +21,8 @@
#include "gc_jd_stack.h"
#include "memory_barrier.h"
-#include <ppu_intrinsics.h>
+
void
gc_jd_stack_init(gc_jd_stack_t *stack)
{
@@ -42,7 +42,7 @@
do {
top = __ldarx(&stack->top);
item->sys.next = top;
- __eieio(); // order store of item->next before store of stack->top
+ smp_wmb(); // order store of item->next before store of stack->top
done = __stdcx(&stack->top, item_ea);
} while (unlikely(done == 0));
}
@@ -62,14 +62,14 @@
done = __stdcx(&stack->top, t);
} while (unlikely(done == 0));
- return ea_to_voidstar(t);
+ return ea_to_voidstar(s);
}
#else // 32-bit mode
/*
* In 32-bit mode, gc_eaddr's will have the top 32-bits zero.
- * The ldarx/stdcx instructions aren't availble in 32-bit mode,
+ * The ldarx/stdcx instructions aren't available in 32-bit mode,
* thus we use lwarx/stwcx on the low 32-bits of the 64-bit addresses.
* Since we're big-endian, the low 32-bits are at word offset 1.
*/
@@ -82,7 +82,7 @@
do {
top = __lwarx((int32_t *)(&stack->top) + 1);
item->sys.next = top;
- __eieio(); // order store of item->next before store of stack->top
+ smp_wmb(); // order store of item->sys.next before store of
stack->top
done = __stwcx((int32_t *)(&stack->top) + 1, item);
} while (unlikely(done == 0));
}
@@ -102,7 +102,7 @@
done = __stwcx((int32_t *)(&stack->top) + 1, (uint32_t) t);
} while (unlikely(done == 0));
- return ea_to_voidstar(t);
+ return ea_to_voidstar(s);
}
#endif
Added: gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.cc
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.cc
(rev 0)
+++ gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.cc 2007-11-19
05:43:39 UTC (rev 6995)
@@ -0,0 +1,39 @@
+/* -*- 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 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.
+ */
+
+/*
+ * This class gathers together all the test cases for the lib
+ * directory into a single test suite. As you create new test cases,
+ * add them here.
+ */
+
+#include <qa_lib.h>
+// #include <qa_jd_stack.h>
+
+CppUnit::TestSuite *
+qa_lib::suite()
+{
+ CppUnit::TestSuite *s = new CppUnit::TestSuite("general");
+
+ // s->addTest(qa_jd_stack::suite());
+
+ return s;
+}
Property changes on: gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.cc
___________________________________________________________________
Name: svn:eol-style
+ native
Added: gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.h
===================================================================
--- gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.h
(rev 0)
+++ gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.h 2007-11-19
05:43:39 UTC (rev 6995)
@@ -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 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.
+ */
+#ifndef INCLUDED_QA_LIB_H
+#define INCLUDED_QA_LIB_H
+
+#include <cppunit/TestSuite.h>
+
+//! collect all the tests for the lib directory
+
+class qa_lib {
+public:
+ //! return suite of tests
+ static CppUnit::TestSuite *suite();
+};
+
+
+#endif /* INCLUDED_QA_LIB_H */
Property changes on: gnuradio/branches/developers/eb/gcell/src/lib/qa_lib.h
___________________________________________________________________
Name: svn:eol-style
+ native
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6995 - in gnuradio/branches/developers/eb/gcell: . src/apps src/lib,
eb <=