Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -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 |
| 10 | utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Saqib Khan | ba23988 | 2017-05-26 08:41:54 -0500 | [diff] [blame] | 11 | utest_CXXFLAGS = $(PTHREAD_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) \ |
Lei YU | 1be8d50 | 2018-06-20 11:48:36 +0800 | [diff] [blame] | 12 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 13 | -DUBIFS_LAYOUT |
Saqib Khan | ba23988 | 2017-05-26 08:41:54 -0500 | [diff] [blame] | 14 | utest_LDFLAGS = -lgtest_main -lgtest $(PTHREAD_LIBS) \ |
| 15 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(OESDK_TESTCASE_FLAGS) \ |
Saqib Khan | 26a960d | 2017-09-19 14:23:28 -0500 | [diff] [blame] | 16 | $(PHOSPHOR_LOGGING_LIBS) -lstdc++fs -lssl -lcrypto |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 17 | |
| 18 | utest_SOURCES = utest.cpp |
Jayanth Othayoth | 6be275b | 2018-02-27 08:36:38 -0600 | [diff] [blame] | 19 | |
| 20 | utest_LDADD = \ |
| 21 | $(top_builddir)/image_verify.cpp \ |
| 22 | $(top_builddir)/version.cpp |