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' |
| 4 | check_PROGRAMS = utest |
| 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 = \ |
| 31 | utest.cpp \ |
| 32 | msl_verify.cpp |
Saqib Khan | 7f80e0b | 2017-10-22 11:29:07 -0500 | [diff] [blame] | 33 | utest_LDADD = \ |
| 34 | $(top_builddir)/openpower_update_manager-activation.o \ |
| 35 | $(top_builddir)/openpower_update_manager-version.o \ |
| 36 | $(top_builddir)/openpower_update_manager-serialize.o \ |
| 37 | $(top_builddir)/openpower_update_manager-watch.o \ |
| 38 | $(top_builddir)/openpower_update_manager-item_updater.o \ |
| 39 | $(top_builddir)/org/openbmc/Associations/openpower_update_manager-server.o \ |
Jayanth Othayoth | 7ccaa2a | 2018-03-21 02:14:34 -0500 | [diff] [blame] | 40 | $(top_builddir)/image_verify.cpp \ |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 41 | $(top_builddir)/msl_verify.cpp \ |
Saqib Khan | 7f80e0b | 2017-10-22 11:29:07 -0500 | [diff] [blame] | 42 | -lstdc++fs |