diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-15 12:44:01 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-19 16:21:51 -0400 |
commit | 13fd8722e616dd424cd585187fb0ef65f6316023 (patch) | |
tree | 6cc19d2a199392b7a6678de57f110461041544b2 /src/test/Makefile.am | |
parent | 4b916f139a9b3ccac76610f5e4da1fe0bb4dfd51 (diff) | |
download | phosphor-dbus-monitor-13fd8722e616dd424cd585187fb0ef65f6316023.tar.gz phosphor-dbus-monitor-13fd8722e616dd424cd585187fb0ef65f6316023.zip |
Add testcases for property watches
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I9e9266901414c71a34d9686f2a45bc4764602d53
Diffstat (limited to 'src/test/Makefile.am')
-rw-r--r-- | src/test/Makefile.am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 330bf3e..fe66203 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -7,6 +7,7 @@ gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS) TEMPLATESEARCH+=${srcdir}/templates check_PROGRAMS = +noinst_PROGRAMS = BUILT_SOURCES = CLEANFILES = @@ -61,3 +62,45 @@ propertygentest.hpp: $(PROPERTY_TEST_GEN_DEPS) -d yaml/propertygentest \ -o $(builddir)/$@ \ generate-cpp + +check_PROGRAMS += propertywatchgentest +propertywatchgentest_SOURCES = \ + propertywatchgentest.cpp +propertywatchgentest_CXXFLAGS = \ + $(gtest_cflags) +propertywatchgentest_LDFLAGS = \ + $(OESDK_TESTCASE_FLAGS) +propertywatchgentest_LDADD = \ + ${gtest_ldadd} + +BUILT_SOURCES += propertywatchgentest.hpp +CLEANFILES += propertywatchgentest.hpp + +PROPERTY_WATCH_TEST_GEN_DEPS = \ + templates/propertywatchgentest.mako.hpp \ + yaml/propertywatchgentest + +propertywatchgentest.hpp: $(PROPERTY_WATCH_TEST_GEN_DEPS) + $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ + -t propertywatchgentest.mako.hpp \ + -p "${TEMPLATESEARCH}" \ + -d yaml/propertywatchgentest \ + -o $(builddir)/$@ \ + generate-cpp + +# propertywatchtest is intentionally omitted from +# check_PROGRAMS until a bug that manifests with +# with GCC7 can be resolved. + +noinst_PROGRAMS += propertywatchtest +propertywatchtest_SOURCES = \ + propertywatchtest.cpp +propertywatchtest_CXXFLAGS = \ + $(gtest_cflags) \ + ${SDBUSPLUS_CFLAGS} +propertywatchtest_LDFLAGS = \ + $(OESDK_TESTCASE_FLAGS) +propertywatchtest_LDADD = \ + ${gtest_ldadd} \ + ${SDBUSPLUS_LIBS} \ + $(builddir)/../propertywatch.o |