Add testcase for conditions
Change-Id: I94059c0be78d5b97e7e0e11c78d4a164a98a483e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 893f264..324eec7 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -154,3 +154,28 @@
-d yaml/callbackgroupgentest \
-o $(builddir)/$@ \
generate-cpp
+
+check_PROGRAMS += conditiongentest
+conditiongentest_SOURCES = \
+ conditiongentest.cpp
+conditiongentest_CXXFLAGS = \
+ $(gtest_cflags)
+conditiongentest_LDFLAGS = \
+ $(OESDK_TESTCASE_FLAGS)
+conditiongentest_LDADD = \
+ ${gtest_ldadd}
+
+BUILT_SOURCES += conditiongentest.hpp
+CLEANFILES += conditiongentest.hpp
+
+CONDITION_TEST_GEN_DEPS = \
+ templates/conditiongentest.mako.hpp \
+ yaml/conditiongentest
+
+conditiongentest.hpp: $(CONDITION_TEST_GEN_DEPS)
+ $(AM_V_GEN) $(PYTHON) $(PDMGEN) \
+ -t conditiongentest.mako.hpp \
+ -p "${TEMPLATESEARCH}" \
+ -d yaml/conditiongentest \
+ -o $(builddir)/$@ \
+ generate-cpp