blob: 8e7dadab45727301de65f7819512b5b00d585a25 [file] [log] [blame]
Patrick Venture21be45a2018-11-06 12:08:52 -08001AM_CPPFLAGS = -I$(top_srcdir)/ \
2 $(GTEST_CFLAGS) \
3 $(GMOCK_CFLAGS)
4AM_CXXFLAGS = \
Patrick Venture4eb55952018-11-16 15:36:24 -08005 $(GTEST_MAIN_CFLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -08006 $(SDBUSPLUS_CFLAGS) \
7 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venture21be45a2018-11-06 12:08:52 -08008AM_LDFLAGS = \
9 $(GMOCK_LIBS) \
10 $(GTEST_MAIN_LIBS) \
Patrick Venture4eb55952018-11-16 15:36:24 -080011 $(OESDK_TESTCASE_FLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -080012 $(SDBUSPLUS_LIBS) \
13 $(PHOSPHOR_LOGGING_LIBS)
Patrick Venture21be45a2018-11-06 12:08:52 -080014
15# Run all 'check' test programs
16check_PROGRAMS = \
Patrick Ventured333a872018-12-03 16:24:26 -080017 firmware_createhandler_unittest \
Patrick Venturede77b302018-11-06 15:38:04 -080018 firmware_handler_unittest \
Patrick Venturedf848ee2018-11-06 15:44:00 -080019 firmware_stat_unittest \
Patrick Venture72388d72018-11-07 15:06:36 -080020 firmware_canhandle_unittest \
Patrick Venture18235e62018-11-08 10:21:09 -080021 firmware_open_unittest \
Patrick Venture8c535332018-11-08 15:58:00 -080022 firmware_write_unittest \
Patrick Venture68bb1432018-11-09 20:08:48 -080023 firmware_writemeta_unittest \
Patrick Venture9e5aab22018-11-09 20:49:28 -080024 firmware_close_unittest \
Patrick Venturea17cf442018-11-15 09:31:51 -080025 firmware_delete_unittest \
Patrick Venturecc7d1602018-11-15 13:58:33 -080026 firmware_sessionstat_unittest \
Patrick Ventureffcc5502018-11-16 12:32:38 -080027 firmware_commit_unittest \
Patrick Venture7753d942018-11-15 13:15:36 -080028 file_handler_unittest
Patrick Venture21be45a2018-11-06 12:08:52 -080029
30TESTS = $(check_PROGRAMS)
31
Patrick Ventured333a872018-12-03 16:24:26 -080032firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp
33firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o
34
Patrick Venturede77b302018-11-06 15:38:04 -080035firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
36firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture21be45a2018-11-06 12:08:52 -080037
Patrick Venturede77b302018-11-06 15:38:04 -080038firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp
39firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture46637c82018-11-06 15:20:24 -080040
Patrick Venturedf848ee2018-11-06 15:44:00 -080041firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp
42firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture72388d72018-11-07 15:06:36 -080043
44firmware_open_unittest_SOURCES = firmware_open_unittest.cpp
45firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture18235e62018-11-08 10:21:09 -080046
47firmware_write_unittest_SOURCES = firmware_write_unittest.cpp
48firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture8c535332018-11-08 15:58:00 -080049
50firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp
51firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture68bb1432018-11-09 20:08:48 -080052
53firmware_close_unittest_SOURCES = firmware_close_unittest.cpp
54firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture9e5aab22018-11-09 20:49:28 -080055
56firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp
57firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venturea17cf442018-11-15 09:31:51 -080058
Patrick Venturecc7d1602018-11-15 13:58:33 -080059firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp
60firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o
61
Patrick Ventureffcc5502018-11-16 12:32:38 -080062firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp
63firmware_commit_unittest_LDADD = $(top_builddir)/firmware_handler.o
64
Patrick Venture7753d942018-11-15 13:15:36 -080065file_handler_unittest_SOURCES = file_handler_unittest.cpp
Patrick Venture86b49e22018-11-15 14:29:00 -080066file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs