Add testcase for callbacks

Change-Id: Iff1ddb9c18b5384d05a4d2dbfba95ade8cc1783c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index fe66203..f4e2e46 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -104,3 +104,28 @@
 	${gtest_ldadd} \
 	${SDBUSPLUS_LIBS} \
 	$(builddir)/../propertywatch.o
+
+check_PROGRAMS += callbackgentest
+callbackgentest_SOURCES = \
+	callbackgentest.cpp
+callbackgentest_CXXFLAGS = \
+	$(gtest_cflags)
+callbackgentest_LDFLAGS = \
+	$(OESDK_TESTCASE_FLAGS)
+callbackgentest_LDADD = \
+	${gtest_ldadd}
+
+BUILT_SOURCES += callbackgentest.hpp
+CLEANFILES += callbackgentest.hpp
+
+CALLBACK_TEST_GEN_DEPS = \
+	templates/callbackgentest.mako.hpp \
+	yaml/callbackgentest
+
+callbackgentest.hpp: $(CALLBACK_TEST_GEN_DEPS)
+	$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
+		-t callbackgentest.mako.hpp \
+		-p "${TEMPLATESEARCH}" \
+		-d yaml/callbackgentest \
+		-o $(builddir)/$@ \
+		generate-cpp