blob: 0c02ff0a0010659cfbf00b147bb5bad6940f997e [file] [log] [blame]
Jason Ling85e54f12020-11-05 18:47:21 -08001@VALGRIND_CHECK_RULES@
2
3AM_CPPFLAGS = \
4 -I$(top_srcdir)/ \
5 -I$(top_srcdir)/bmc/ \
Jason Lingc78bfc82020-11-05 18:58:16 -08006 -I$(top_srcdir)/bmc/test \
Jason Ling85e54f12020-11-05 18:47:21 -08007 -I$(top_srcdir)/bmc/version-handler \
8 $(GTEST_CFLAGS) \
9 $(GMOCK_CFLAGS) \
10 $(CODE_COVERAGE_CPPFLAGS)
11AM_CXXFLAGS = \
12 $(SDBUSPLUS_CFLAGS) \
13 $(PHOSPHOR_LOGGING_CFLAGS) \
14 $(CODE_COVERAGE_CXXFLAGS)
15AM_LDFLAGS = \
16 $(GTEST_LIBS) \
17 $(GMOCK_LIBS) \
18 -lgmock_main \
19 $(OESDK_TESTCASE_FLAGS) \
20 $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_LOGGING_LIBS) \
22 $(CODE_COVERAGE_LIBS)
23
24# Run all 'check' test programs
25check_PROGRAMS = \
Jason Lingc78bfc82020-11-05 18:58:16 -080026 version_json_unittest \
27 version_canhandle_enumerate_unittest \
28 version_createhandler_unittest \
29 version_open_unittest \
30 version_close_unittest \
31 version_read_unittest
Jason Ling85e54f12020-11-05 18:47:21 -080032
33TESTS = $(check_PROGRAMS)
34
35version_json_unittest_SOURCES = version_json_unittest.cpp
36version_json_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
Jason Lingc78bfc82020-11-05 18:58:16 -080037
38version_canhandle_enumerate_unittest_SOURCES = version_canhandle_enumerate_unittest.cpp
39version_canhandle_enumerate_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
40
41version_createhandler_unittest_SOURCES = version_createhandler_unittest.cpp
42version_createhandler_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
43
44version_open_unittest_SOURCES = version_open_unittest.cpp
45version_open_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
46
47version_close_unittest_SOURCES = version_close_unittest.cpp
48version_close_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
49
50version_read_unittest_SOURCES = version_read_unittest.cpp
51version_read_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la