blob: adc1e1004db6de829febc532ff0e557164f9068c [file] [log] [blame]
Deepak Kodihalli901c5d92016-11-30 05:19:45 -06001AM_CPPFLAGS = -I$(top_srcdir)
2
Deepak Kodihalli901c5d92016-11-30 05:19:45 -06003TESTS = $(check_PROGRAMS)
4
Deepak Kodihalli4af85c22017-02-19 22:32:46 -06005check_PROGRAMS = store_test
Alpana Kumari26a74af2019-09-10 23:53:58 -05006
Deepak Kodihalli901c5d92016-11-30 05:19:45 -06007store_test_SOURCES = store/store.cpp
Deepak Kodihalli79f9eee2016-12-02 07:10:14 -06008
Alpana Kumari26a74af2019-09-10 23:53:58 -05009check_PROGRAMS += ipz_parser_test
10
Alpana Kumaric0aeac32019-11-28 05:20:10 -060011ipz_parser_test_SOURCES = \
12 ipz_parser/parser.cpp \
13 ../impl.cpp \
14 ../vpdecc/vpdecc.c \
15 ../vpdecc/vpdecc_support.c
16
Alpana Kumari26a74af2019-09-10 23:53:58 -050017test_cppflags = \
18 -Igtest \
19 $(GTEST_CPPFLAGS) \
20 $(AM_CPPFLAGS) \
21 -pthread \
22 $(PTHREAD_CFLAGS) \
23 $(SDBUSPLUS_CFLAGS)
24
25test_ldflags = \
26 -lgtest_main \
27 -lgtest \
28 -pthread \
29 $(PTHREAD_LIBS) \
30 $(SDBUSPLUS_LIBS)
31
32ipz_parser_test_CPPFLAGS = $(test_cppflags) -DIPZ_PARSER
33ipz_parser_test_LDFLAGS = $(test_ldflags)
34
PriyangaRamasamyabb87ed2019-11-19 17:25:35 +053035check_PROGRAMS += kw_vpd_test
36kw_vpd_test_SOURCES = \
37 keyword_vpd_parser_test/kw_vpd_test.cpp \
38 ../keyword_vpd_parser.cpp
39
40kw_vpd_test_CPPFLAGS = $(test_cppflags)
41kw_vpd_test_LDFLAGS = $(test_ldflags)
42
Alpana Kumari26a74af2019-09-10 23:53:58 -050043if !IBM_PARSER
Deepak Kodihalli4af85c22017-02-19 22:32:46 -060044noinst_PROGRAMS = parser_test
Deepak Kodihalli79f9eee2016-12-02 07:10:14 -060045parser_test_SOURCES = \
46 parser/parser.cpp \
Alpana Kumaric0aeac32019-11-28 05:20:10 -060047 ../impl.cpp \
48 ../parser.cpp \
49 ../write.cpp \
50 ../utils.cpp
51
Deepak Kodihallic6e551b2017-02-17 07:39:50 -060052parser_test_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
53parser_test_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
PriyangaRamasamyabb87ed2019-11-19 17:25:35 +053054
Alpana Kumari26a74af2019-09-10 23:53:58 -050055endif