summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/lib
diff options
context:
space:
mode:
authorTom Rondeau2010-10-04 20:18:46 -0400
committerTom Rondeau2010-10-04 20:18:46 -0400
commit2652a20330ea1238d561ce799c40833e46d3508c (patch)
tree18e33f06998841b4d8ea63a1c55374c4728d2f8f /gr-howto-write-a-block/lib
parent2104a9d1b2c964ec0f710f3209bb4a63cc7ae548 (diff)
downloadgnuradio-2652a20330ea1238d561ce799c40833e46d3508c.tar.gz
gnuradio-2652a20330ea1238d561ce799c40833e46d3508c.tar.bz2
gnuradio-2652a20330ea1238d561ce799c40833e46d3508c.zip
Updating all of the QA code that I can actually test to work with the new XML output runners.
Diffstat (limited to 'gr-howto-write-a-block/lib')
-rw-r--r--gr-howto-write-a-block/lib/test_all.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/gr-howto-write-a-block/lib/test_all.cc b/gr-howto-write-a-block/lib/test_all.cc
index 192c537bc..ac1e83839 100644
--- a/gr-howto-write-a-block/lib/test_all.cc
+++ b/gr-howto-write-a-block/lib/test_all.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2009 Free Software Foundation, Inc.
+ * Copyright 2009,2010 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -21,16 +21,23 @@
*/
#include <cppunit/TextTestRunner.h>
+#include <cppunit/XmlOutputter.h>
+#include <gr_unittests.h>
#include <qa_howto.h>
int
main (int argc, char **argv)
{
-
+ char path[200];
+ get_unittest_path ("gr_howto_write_a_block.xml", path, 200);
+
CppUnit::TextTestRunner runner;
+ std::ofstream xmlfile(path);
+ CppUnit::XmlOutputter *xmlout = new CppUnit::XmlOutputter(&runner.result(), xmlfile);
runner.addTest(qa_howto::suite ());
+ runner.setOutputter(xmlout);
bool was_successful = runner.run("", false);