summaryrefslogtreecommitdiff
path: root/gcell/apps
diff options
context:
space:
mode:
authorTom Rondeau2010-10-02 17:35:16 -0400
committerTom Rondeau2010-10-02 17:35:16 -0400
commit57368f1a3f7f2e92190d72328ff54eb452ba58ed (patch)
tree7c3bdea1df4fccc578096588bb0d550b6013d7d3 /gcell/apps
parent2b8bd0d2fa7c76282a772b75cb99e7bd5f2be13f (diff)
downloadgnuradio-57368f1a3f7f2e92190d72328ff54eb452ba58ed.tar.gz
gnuradio-57368f1a3f7f2e92190d72328ff54eb452ba58ed.tar.bz2
gnuradio-57368f1a3f7f2e92190d72328ff54eb452ba58ed.zip
Modified gcell and gr-atsc cppunit tests to output XML files, too. Gcell needs testing.
Diffstat (limited to 'gcell/apps')
-rw-r--r--gcell/apps/test_all.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcell/apps/test_all.cc b/gcell/apps/test_all.cc
index 9823960c4..0b608e13b 100644
--- a/gcell/apps/test_all.cc
+++ b/gcell/apps/test_all.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2007 Free Software Foundation, Inc.
+ * Copyright 2007,2010 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -20,18 +20,25 @@
*/
#include <cppunit/TextTestRunner.h>
+#include <cppunit/XmlOutputter.h>
+#include <gr_unittests.h>
#include "../lib/runtime/qa_gcell_runtime.h"
#include "../lib/wrapper/qa_gcell_wrapper.h"
int
main(int argc, char **argv)
{
-
- CppUnit::TextTestRunner runner;
+ char path[200];
+ get_unittest_path ("gcell_all.xml", path, 200);
+
+ CppUnit::TextTestRunner runner;
+ std::ofstream xmlfile(path);
+ CppUnit::XmlOutputter *xmlout = new CppUnit::XmlOutputter(&runner.result(), xmlfile);
runner.addTest(qa_gcell_runtime::suite());
runner.addTest(qa_gcell_wrapper::suite());
+ runner.setOutputter(xmlout);
bool was_successful = runner.run("", false);