summaryrefslogtreecommitdiffstats
path: root/src/test/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/Makefile.am')
-rw-r--r--src/test/Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index c44bffa..02772e7 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -11,3 +11,28 @@ BUILT_SOURCES =
CLEANFILES =
TESTS = $(check_PROGRAMS)
+
+check_PROGRAMS += pathgentest
+pathgentest_SOURCES = \
+ pathgentest.cpp
+pathgentest_CXXFLAGS = \
+ $(gtest_cflags)
+pathgentest_LDFLAGS = \
+ $(OESDK_TESTCASE_FLAGS)
+pathgentest_LDADD = \
+ ${gtest_ldadd}
+
+BUILT_SOURCES += pathgentest.hpp
+CLEANFILES += pathgentest.hpp
+
+PATH_TEST_GEN_DEPS = \
+ templates/pathgentest.mako.hpp \
+ yaml/pathgentest
+
+pathgentest.hpp: $(PDMGEN) $(PATH_TEST_GEN_DEPS)
+ $(AM_V_GEN) $(PYTHON) $(PDMGEN) \
+ -t pathgentest.mako.hpp \
+ -p "${TEMPLATESEARCH}" \
+ -d yaml/pathgentest \
+ -o $(builddir)/$@ \
+ generate-cpp
OpenPOWER on IntegriCloud