Gunnar Mills | 1ea62e1 | 2017-03-27 21:49:16 -0500 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | # gtest unit tests which run during a 'make check' |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 4 | check_PROGRAMS = utest test_functions |
Gunnar Mills | 1ea62e1 | 2017-03-27 21:49:16 -0500 | [diff] [blame] | 5 | |
| 6 | # Run all 'check' test programs |
| 7 | TESTS = $(check_PROGRAMS) |
| 8 | |
| 9 | # Build/add utest to test suite |
Gunnar Mills | 2a6981b | 2017-10-15 17:05:18 -0500 | [diff] [blame] | 10 | utest_CPPFLAGS = \ |
| 11 | -Igtest \ |
| 12 | $(GTEST_CPPFLAGS) \ |
| 13 | $(AM_CPPFLAGS) |
| 14 | |
| 15 | utest_CXXFLAGS = \ |
| 16 | $(PTHREAD_CFLAGS) \ |
| 17 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 18 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 19 | |
| 20 | utest_LDFLAGS = \ |
| 21 | -lgtest_main \ |
| 22 | -lgtest \ |
| 23 | $(PTHREAD_LIBS) \ |
| 24 | $(OESDK_TESTCASE_FLAGS) \ |
| 25 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 26 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 27 | -lssl \ |
| 28 | -lcrypto |
Gunnar Mills | 1ea62e1 | 2017-03-27 21:49:16 -0500 | [diff] [blame] | 29 | |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 30 | utest_SOURCES = \ |
Lei YU | ed1c1dc | 2019-03-01 16:00:26 +0800 | [diff] [blame] | 31 | ../activation.cpp \ |
| 32 | ../version.cpp \ |
| 33 | ../item_updater.cpp \ |
Lei YU | ed1c1dc | 2019-03-01 16:00:26 +0800 | [diff] [blame] | 34 | ../image_verify.cpp \ |
Lei YU | e499446 | 2019-03-14 14:41:53 +0800 | [diff] [blame] | 35 | ../utils.cpp \ |
Lei YU | ed1c1dc | 2019-03-01 16:00:26 +0800 | [diff] [blame] | 36 | ../msl_verify.cpp \ |
| 37 | ../ubi/activation_ubi.cpp \ |
| 38 | ../ubi/item_updater_ubi.cpp \ |
| 39 | ../ubi/serialize.cpp \ |
| 40 | ../ubi/watch.cpp \ |
Lei YU | 716de5b | 2019-03-01 16:03:53 +0800 | [diff] [blame] | 41 | ../static/item_updater_static.cpp \ |
| 42 | ../static/activation_static.cpp \ |
Lei YU | b150134 | 2019-03-01 16:23:29 +0800 | [diff] [blame] | 43 | test_signature.cpp \ |
| 44 | test_version.cpp \ |
Lei YU | 0783076 | 2019-03-01 17:17:28 +0800 | [diff] [blame] | 45 | test_item_updater_static.cpp \ |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 46 | msl_verify.cpp |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 47 | |
| 48 | test_functions_CPPFLAGS = \ |
| 49 | -Igtest \ |
| 50 | $(GTEST_CPPFLAGS) \ |
| 51 | $(AM_CPPFLAGS) |
| 52 | |
| 53 | test_functions_CXXFLAGS = \ |
| 54 | $(PTHREAD_CFLAGS) \ |
| 55 | $(SDBUSPLUS_CFLAGS) \ |
| 56 | $(SDEVENTPLUS_CFLAGS) |
| 57 | |
| 58 | test_functions_LDFLAGS = \ |
| 59 | -lgtest_main \ |
| 60 | -lgtest \ |
| 61 | $(SDBUSPLUS_LIBS) \ |
| 62 | $(SDEVENTPLUS_LIBS) |
| 63 | |
| 64 | test_functions_SOURCES = \ |
| 65 | test_functions.cpp \ |
| 66 | ../functions.cpp |