Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CPPFLAGS) $(GTEST_CFLAGS) |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 2 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 3 | AM_CXXFLAGS = $(GTEST_MAIN_CFLAGS) $(GTEST_CFLAGS) |
| 4 | AM_LDFLAGS = $(GTEST_MAIN_LIBS) $(OESDK_TESTCASE_FLAGS) |
Matthew Barth | 00b1e5b | 2016-09-09 12:15:46 -0500 | [diff] [blame] | 5 | |
| 6 | # Run all 'check' test programs |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 7 | check_PROGRAMS = |
Matthew Barth | 00b1e5b | 2016-09-09 12:15:46 -0500 | [diff] [blame] | 8 | TESTS = $(check_PROGRAMS) |
| 9 | |
| 10 | # Build/add sample_unittest to test suite |
Patrick Williams | c0c1967 | 2016-11-04 17:37:27 -0500 | [diff] [blame] | 11 | sample_unittest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 12 | sample_unittest_CXXFLAGS = $(PTHREAD_CFLAGS) $(CODE_COVERAGE_CXXFLAGS) \ |
| 13 | $(CODE_COVERAGE_CFLAGS) |
| 14 | sample_unittest_LDFLAGS = -lgtest_main -lgtest $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS) \ |
| 15 | $(CODE_COVERAGE_LDFLAGS) |
| 16 | sample_unittest_SOURCES = %reldir%/sample_unittest.cpp |
Matthew Barth | 00b1e5b | 2016-09-09 12:15:46 -0500 | [diff] [blame] | 17 | sample_unittest_LDADD = $(top_builddir)/sample.o |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 18 | check_PROGRAMS += %reldir%/sample_unittest |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 19 | |
| 20 | # Build/add oemrouter_unittest to test suite |
Patrick Venture | 79c7c85 | 2018-07-25 13:10:25 -0700 | [diff] [blame] | 21 | # Issue #3325 |
| 22 | #check_PROGRAMS += oemrouter_unittest |
| 23 | #oemrouter_unittest_SOURCES = oemrouter_unittest.cpp |
| 24 | #oemrouter_unittest_LDADD = $(top_builddir)/oemrouter.o |