blob: 847aaad748166487f21a7e24b415221af4cd1ad2 [file] [log] [blame]
Peter Hanson4a589852017-06-07 17:40:45 -07001AM_CPPFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CPPFLAGS) $(GTEST_CFLAGS)
Emily Shafferc07e72c2018-06-18 10:37:31 -07002AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
Peter Hanson4a589852017-06-07 17:40:45 -07003AM_CXXFLAGS = $(GTEST_MAIN_CFLAGS) $(GTEST_CFLAGS)
4AM_LDFLAGS = $(GTEST_MAIN_LIBS) $(OESDK_TESTCASE_FLAGS)
Matthew Barth00b1e5b2016-09-09 12:15:46 -05005
6# Run all 'check' test programs
Peter Hanson4a589852017-06-07 17:40:45 -07007check_PROGRAMS =
Matthew Barth00b1e5b2016-09-09 12:15:46 -05008TESTS = $(check_PROGRAMS)
9
10# Build/add sample_unittest to test suite
Patrick Williamsc0c19672016-11-04 17:37:27 -050011sample_unittest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
Emily Shafferc07e72c2018-06-18 10:37:31 -070012sample_unittest_CXXFLAGS = $(PTHREAD_CFLAGS) $(CODE_COVERAGE_CXXFLAGS) \
13 $(CODE_COVERAGE_CFLAGS)
14sample_unittest_LDFLAGS = -lgtest_main -lgtest $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS) \
15 $(CODE_COVERAGE_LDFLAGS)
16sample_unittest_SOURCES = %reldir%/sample_unittest.cpp
Matthew Barth00b1e5b2016-09-09 12:15:46 -050017sample_unittest_LDADD = $(top_builddir)/sample.o
Emily Shafferc07e72c2018-06-18 10:37:31 -070018check_PROGRAMS += %reldir%/sample_unittest
Peter Hanson4a589852017-06-07 17:40:45 -070019
20# Build/add oemrouter_unittest to test suite
Patrick Venture79c7c852018-07-25 13:10:25 -070021# Issue #3325
22#check_PROGRAMS += oemrouter_unittest
23#oemrouter_unittest_SOURCES = oemrouter_unittest.cpp
24#oemrouter_unittest_LDADD = $(top_builddir)/oemrouter.o