blob: 93daa376101291ea26fe6936da75306530b33e0f [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 \
27 version_read_unittest
Jason Ling85e54f12020-11-05 18:47:21 -080028
29TESTS = $(check_PROGRAMS)
30
31version_json_unittest_SOURCES = version_json_unittest.cpp
32version_json_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
Jason Lingc78bfc82020-11-05 18:58:16 -080033
34version_canhandle_enumerate_unittest_SOURCES = version_canhandle_enumerate_unittest.cpp
35version_canhandle_enumerate_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
36
37version_createhandler_unittest_SOURCES = version_createhandler_unittest.cpp
38version_createhandler_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
39
40version_open_unittest_SOURCES = version_open_unittest.cpp
41version_open_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
42
43version_close_unittest_SOURCES = version_close_unittest.cpp
44version_close_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la
45
46version_read_unittest_SOURCES = version_read_unittest.cpp
47version_read_unittest_LDADD = $(top_builddir)/bmc/version-handler/libversionblob_common.la