Matt Spinler | 597e05c | 2017-02-28 09:59:53 -0600 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | # Run all 'check' test programs |
| 4 | TESTS = $(check_PROGRAMS) |
| 5 | |
| 6 | # Basic test suite for hostcontrol interfaces |
| 7 | check_PROGRAMS = utest |
Matt Spinler | a231ceb | 2017-10-04 11:26:09 -0500 | [diff] [blame] | 8 | utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Matt Spinler | 597e05c | 2017-02-28 09:59:53 -0600 | [diff] [blame] | 9 | |
Matt Spinler | a231ceb | 2017-10-04 11:26:09 -0500 | [diff] [blame] | 10 | utest_CXXFLAGS = $(PTHREAD_CFLAGS) \ |
| 11 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 12 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 13 | |
| 14 | utest_LDFLAGS = -lgtest_main -lgtest \ |
| 15 | $(PTHREAD_LIBS) \ |
| 16 | $(OESDK_TESTCASE_FLAGS) \ |
| 17 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 18 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 19 | -lstdc++fs |
Matt Spinler | 597e05c | 2017-02-28 09:59:53 -0600 | [diff] [blame] | 20 | |
| 21 | utest_SOURCES = utest.cpp |
Matt Spinler | b654234 | 2017-03-28 16:37:36 -0500 | [diff] [blame] | 22 | utest_LDADD = $(top_srcdir)/targeting.cpp $(top_srcdir)/filedescriptor.cpp |