Create a tracing util wrapper
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I032b6137921ea06c3ea1f927521731648d68c230
diff --git a/test/end2end/meson.build b/test/end2end/meson.build
index 98c8462..6897469 100644
--- a/test/end2end/meson.build
+++ b/test/end2end/meson.build
@@ -5,6 +5,7 @@
link_with : [analyzer, attn],
include_directories : incdir,
dependencies : libhei_dep,
+ cpp_args : test_arg,
install : false)
#test('openpower-hw-diags-test', end2end)
diff --git a/test/meson.build b/test/meson.build
index 1704f17..6cdae18 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,3 +1,7 @@
+test_arg = [
+ '-DTEST_TRACE',
+]
+
# end2end code exerciser for experiment and testing
subdir('end2end')
@@ -6,5 +10,5 @@
]
foreach t : tests
- test(t, executable(t.underscorify(), t + '.cpp'))
+ test(t, executable(t.underscorify(), t + '.cpp', cpp_args : test_arg))
endforeach