diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-10-07 13:30:35 -0700 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-10-22 19:06:55 +0200 |
commit | 9449236cf7bf48f40b696edce68d81410d713489 (patch) | |
tree | 56052674fea45cb83a1291e6886a8154c97d1b15 /gr-utils/python/modtool/templates.py | |
parent | ea0ee503a144aaf07a684a2dfaac58c89dbdb78d (diff) |
modtool: OOTs use Boost.UTF, CMake 3.8-Aware
- This is the same change that happened for the GNU Radio core
- New OOTs will now have Boost.UTF-based unit tests
- modtool will be able to handle both CppUnit-based OOTs as well as
Boost.UTF-based ones; this change is backward-compatible
Diffstat (limited to 'gr-utils/python/modtool/templates.py')
-rw-r--r-- | gr-utils/python/modtool/templates.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py index 10ee4a4e6c..420b7c63b5 100644 --- a/gr-utils/python/modtool/templates.py +++ b/gr-utils/python/modtool/templates.py @@ -1,5 +1,5 @@ # -# Copyright 2013-2014 Free Software Foundation, Inc. +# Copyright 2013-2014,2018 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -442,6 +442,25 @@ class ${blockname}(${parenttype}): ''' +# C++ file for QA (Boost UTF style) +Templates['qa_cpp_boostutf'] = '''/* -*- c++ -*- */ +${str_to_fancyc_comment(license)} + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <${include_dir_prefix}/${blockname}.h> +#include <gnuradio/attributes.h> +#include <boost/test/unit_test.hpp> + +BOOST_AUTO_TEST_CASE(test_${blockname}_t1) +{ + // Put test here +} + +''' + # C++ file for QA Templates['qa_cpp'] = '''/* -*- c++ -*- */ ${str_to_fancyc_comment(license)} |