blob: 3fbcc7c87f3e2bf75ad401bcd24363adad296f6a [file] [log] [blame]
Andrew Geissler4cea4d22017-07-10 15:13:33 -05001AM_CPPFLAGS = -I$(top_srcdir)
2check_PROGRAMS = utest
3
4# Run all 'check' test programs
5TESTS = $(check_PROGRAMS)
6
Chris Caina8857c52021-01-27 11:53:05 -06007utest_LDADD = \
8 $(top_builddir)/libocc_control.la \
9 -lstdc++fs \
10 -lgmock \
11 $(SDBUSPLUS_LIBS) \
12 $(SDEVENTPLUS_LIBS) \
13 $(FMT_LIBS)
Lei YU6c56a4a2017-07-14 11:07:37 +080014
Eddie James774f9af2019-03-19 20:58:53 +000015utest_SOURCES = error_files_tests.cpp \
16 utest.cpp \
George Liu6f777cd2021-06-10 09:16:28 +080017 TestI2cOcc.cpp \
18 occ_dbus_test.cpp
Lei YU6c56a4a2017-07-14 11:07:37 +080019
20utest_CPPFLAGS = $(GTEST_CPPFLAGS) \
21 $(AM_CPPFLAGS)
22
Andrew Geissler4cea4d22017-07-10 15:13:33 -050023utest_CXXFLAGS = $(PTHREAD_CFLAGS)
Lei YU6c56a4a2017-07-14 11:07:37 +080024
William A. Kennington III3c1706a2018-06-27 09:34:30 -070025utest_LDFLAGS = -lgtest -lgmock -lgmock_main \
Lei YU6c56a4a2017-07-14 11:07:37 +080026 $(PTHREAD_LIBS) \
27 $(OESDK_TESTCASE_FLAGS)