blob: b3b62908b346d5f79e44755b723dee3f1876791e [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 = \
Jason Ling85e54f12020-11-05 18:47:21 -080012 $(CODE_COVERAGE_CXXFLAGS)
13AM_LDFLAGS = \
14 $(GTEST_LIBS) \
15 $(GMOCK_LIBS) \
16 -lgmock_main \
17 $(OESDK_TESTCASE_FLAGS) \
Jason Ling85e54f12020-11-05 18:47:21 -080018 $(CODE_COVERAGE_LIBS)
19
20# Run all 'check' test programs
21check_PROGRAMS = \
Jason Lingc78bfc82020-11-05 18:58:16 -080022 version_json_unittest \
23 version_canhandle_enumerate_unittest \
24 version_createhandler_unittest \
25 version_open_unittest \
26 version_close_unittest \
William A. Kennington IIIeba0c342021-01-12 14:23:01 -080027 version_read_unittest \
28 version_stat_unittest
Jason Ling85e54f12020-11-05 18:47:21 -080029
30TESTS = $(check_PROGRAMS)
31
32version_json_unittest_SOURCES = version_json_unittest.cpp
33version_json_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
Jason Lingc78bfc82020-11-05 18:58:16 -080034
35version_canhandle_enumerate_unittest_SOURCES = version_canhandle_enumerate_unittest.cpp
36version_canhandle_enumerate_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
37
38version_createhandler_unittest_SOURCES = version_createhandler_unittest.cpp
39version_createhandler_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
40
41version_open_unittest_SOURCES = version_open_unittest.cpp
42version_open_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
43
44version_close_unittest_SOURCES = version_close_unittest.cpp
45version_close_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
46
47version_read_unittest_SOURCES = version_read_unittest.cpp
48version_read_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
William A. Kennington IIIeba0c342021-01-12 14:23:01 -080049
50version_stat_unittest_SOURCES = version_stat_unittest.cpp
51version_stat_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la