blob: d7ca5a018fd695a0367e56711ee2e728f3aba2f3 [file] [log] [blame]
Patrick Venture21be45a2018-11-06 12:08:52 -08001AM_CPPFLAGS = -I$(top_srcdir)/ \
2 $(GTEST_CFLAGS) \
3 $(GMOCK_CFLAGS)
4AM_CXXFLAGS = \
5 $(GTEST_MAIN_CFLAGS)
6AM_LDFLAGS = \
7 $(GMOCK_LIBS) \
8 $(GTEST_MAIN_LIBS) \
9 $(OESDK_TESTCASE_FLAGS)
10
11# Run all 'check' test programs
12check_PROGRAMS = \
Patrick Venturede77b302018-11-06 15:38:04 -080013 firmware_handler_unittest \
Patrick Venturedf848ee2018-11-06 15:44:00 -080014 firmware_stat_unittest \
Patrick Venture72388d72018-11-07 15:06:36 -080015 firmware_canhandle_unittest \
Patrick Venture18235e62018-11-08 10:21:09 -080016 firmware_open_unittest \
Patrick Venture8c535332018-11-08 15:58:00 -080017 firmware_write_unittest \
Patrick Venture68bb1432018-11-09 20:08:48 -080018 firmware_writemeta_unittest \
Patrick Venture9e5aab22018-11-09 20:49:28 -080019 firmware_close_unittest \
Patrick Venturea17cf442018-11-15 09:31:51 -080020 firmware_delete_unittest \
Patrick Venture7753d942018-11-15 13:15:36 -080021 file_handler_unittest
Patrick Venture21be45a2018-11-06 12:08:52 -080022
23TESTS = $(check_PROGRAMS)
24
Patrick Venturede77b302018-11-06 15:38:04 -080025firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
26firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture21be45a2018-11-06 12:08:52 -080027
Patrick Venturede77b302018-11-06 15:38:04 -080028firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp
29firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture46637c82018-11-06 15:20:24 -080030
Patrick Venturedf848ee2018-11-06 15:44:00 -080031firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp
32firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture72388d72018-11-07 15:06:36 -080033
34firmware_open_unittest_SOURCES = firmware_open_unittest.cpp
35firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture18235e62018-11-08 10:21:09 -080036
37firmware_write_unittest_SOURCES = firmware_write_unittest.cpp
38firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture8c535332018-11-08 15:58:00 -080039
40firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp
41firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture68bb1432018-11-09 20:08:48 -080042
43firmware_close_unittest_SOURCES = firmware_close_unittest.cpp
44firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture9e5aab22018-11-09 20:49:28 -080045
46firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp
47firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venturea17cf442018-11-15 09:31:51 -080048
Patrick Venture7753d942018-11-15 13:15:36 -080049file_handler_unittest_SOURCES = file_handler_unittest.cpp
50file_handler_unittest_LDADD = $(top_builddir)/file_handler.o