From 9449236cf7bf48f40b696edce68d81410d713489 Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@ettus.com>
Date: Sun, 7 Oct 2018 13:30:35 -0700
Subject: 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
---
 gr-utils/python/modtool/templates.py | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

(limited to 'gr-utils/python/modtool/templates.py')

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)}
-- 
cgit v1.2.3