blob: 9314049219f726e716b3f39203d20c067db335e2 [file] [log] [blame]
include $(top_srcdir)/vars.mk
AM_CPPFLAGS = -iquote$(top_srcdir)/src
gtest_cflags = $(PTHREAD_CFLAGS)
gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS)
TEMPLATESEARCH+=${srcdir}/templates
check_PROGRAMS =
noinst_PROGRAMS =
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 ${srcdir}/yaml/pathgentest \
-o $(builddir)/$@ \
generate-cpp
check_PROGRAMS += propertygentest
propertygentest_SOURCES = \
propertygentest.cpp
propertygentest_CXXFLAGS = \
$(gtest_cflags)
propertygentest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
propertygentest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += propertygentest.hpp
CLEANFILES += propertygentest.hpp
PROPERTY_TEST_GEN_DEPS = \
templates/propertygentest.mako.hpp \
yaml/propertygentest
propertygentest.hpp: $(PROPERTY_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t propertygentest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d ${srcdir}/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 ${srcdir}/yaml/propertywatchgentest \
-o $(builddir)/$@ \
generate-cpp
check_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
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 ${srcdir}/yaml/callbackgentest \
-o $(builddir)/$@ \
generate-cpp
check_PROGRAMS += callbackgroupgentest
callbackgroupgentest_SOURCES = \
callbackgroupgentest.cpp
callbackgroupgentest_CXXFLAGS = \
$(gtest_cflags)
callbackgroupgentest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
callbackgroupgentest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += callbackgroupgentest.hpp
CLEANFILES += callbackgroupgentest.hpp
CALLBACKGROUP_TEST_GEN_DEPS = \
templates/callbackgroupgentest.mako.hpp \
yaml/callbackgroupgentest
callbackgroupgentest.hpp: $(CALLBACKGROUP_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t callbackgroupgentest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d ${srcdir}/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 ${srcdir}/yaml/conditiongentest \
-o $(builddir)/$@ \
generate-cpp
check_PROGRAMS += callbacktest
callbacktest_SOURCES = \
callbacktest.cpp
callbacktest_CXXFLAGS = \
$(gtest_cflags)
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS)
callbacktest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
callbacktest_LDADD = \
${gtest_ldadd} \
${SDBUSPLUS_LIBS} \
${SDEVENTPLUS_LIBS} \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
$(builddir)/../journal.o \
$(builddir)/../elog.o \
$(builddir)/../resolve_errors.o \
$(builddir)/../event_manager.o \
$(builddir)/../event_serialize.o \
-lstdc++fs
check_PROGRAMS += interfaceaddtest
interfaceaddtest_SOURCES = \
interfaceaddtest.cpp
interfaceaddtest_CXXFLAGS = \
$(gtest_cflags)
interfaceaddtest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
interfaceaddtest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += interfaceaddtest.hpp
CLEANFILES += interfaceaddtest.hpp
INTERFACEADD_TEST_GEN_DEPS = \
templates/interfaceaddtest.mako.hpp \
yaml/interfaceaddtest
interfaceaddtest.hpp: $(PDMGEN) $(INTERFACEADD_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t interfaceaddtest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d ${srcdir}/yaml/interfaceaddtest \
-o $(builddir)/$@ \
generate-cpp