Deepak Kodihalli | 901c5d9 | 2016-11-30 05:19:45 -0600 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
Deepak Kodihalli | 901c5d9 | 2016-11-30 05:19:45 -0600 | [diff] [blame] | 3 | TESTS = $(check_PROGRAMS) |
| 4 | |
Deepak Kodihalli | 4af85c2 | 2017-02-19 22:32:46 -0600 | [diff] [blame] | 5 | check_PROGRAMS = store_test |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 6 | |
Deepak Kodihalli | 901c5d9 | 2016-11-30 05:19:45 -0600 | [diff] [blame] | 7 | store_test_SOURCES = store/store.cpp |
Deepak Kodihalli | 79f9eee | 2016-12-02 07:10:14 -0600 | [diff] [blame] | 8 | |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 9 | check_PROGRAMS += ipz_parser_test |
| 10 | |
Alpana Kumari | c0aeac3 | 2019-11-28 05:20:10 -0600 | [diff] [blame] | 11 | ipz_parser_test_SOURCES = \ |
| 12 | ipz_parser/parser.cpp \ |
| 13 | ../impl.cpp \ |
| 14 | ../vpdecc/vpdecc.c \ |
| 15 | ../vpdecc/vpdecc_support.c |
| 16 | |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 17 | test_cppflags = \ |
| 18 | -Igtest \ |
| 19 | $(GTEST_CPPFLAGS) \ |
| 20 | $(AM_CPPFLAGS) \ |
| 21 | -pthread \ |
| 22 | $(PTHREAD_CFLAGS) \ |
| 23 | $(SDBUSPLUS_CFLAGS) |
| 24 | |
| 25 | test_ldflags = \ |
| 26 | -lgtest_main \ |
| 27 | -lgtest \ |
| 28 | -pthread \ |
| 29 | $(PTHREAD_LIBS) \ |
| 30 | $(SDBUSPLUS_LIBS) |
| 31 | |
| 32 | ipz_parser_test_CPPFLAGS = $(test_cppflags) -DIPZ_PARSER |
| 33 | ipz_parser_test_LDFLAGS = $(test_ldflags) |
| 34 | |
PriyangaRamasamy | abb87ed | 2019-11-19 17:25:35 +0530 | [diff] [blame] | 35 | check_PROGRAMS += kw_vpd_test |
| 36 | kw_vpd_test_SOURCES = \ |
| 37 | keyword_vpd_parser_test/kw_vpd_test.cpp \ |
| 38 | ../keyword_vpd_parser.cpp |
| 39 | |
| 40 | kw_vpd_test_CPPFLAGS = $(test_cppflags) |
| 41 | kw_vpd_test_LDFLAGS = $(test_ldflags) |
| 42 | |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 43 | if !IBM_PARSER |
Deepak Kodihalli | 4af85c2 | 2017-02-19 22:32:46 -0600 | [diff] [blame] | 44 | noinst_PROGRAMS = parser_test |
Deepak Kodihalli | 79f9eee | 2016-12-02 07:10:14 -0600 | [diff] [blame] | 45 | parser_test_SOURCES = \ |
| 46 | parser/parser.cpp \ |
Alpana Kumari | c0aeac3 | 2019-11-28 05:20:10 -0600 | [diff] [blame] | 47 | ../impl.cpp \ |
| 48 | ../parser.cpp \ |
| 49 | ../write.cpp \ |
| 50 | ../utils.cpp |
| 51 | |
Deepak Kodihalli | c6e551b | 2017-02-17 07:39:50 -0600 | [diff] [blame] | 52 | parser_test_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS) |
| 53 | parser_test_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) |
PriyangaRamasamy | abb87ed | 2019-11-19 17:25:35 +0530 | [diff] [blame] | 54 | |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 55 | endif |