diff options
Diffstat (limited to 'test/Makefile.am')
-rw-r--r-- | test/Makefile.am | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index cd879f5..5311f9f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,22 +4,16 @@ check_PROGRAMS = utest # Run all 'check' test programs TESTS = $(check_PROGRAMS) -# Build/add utest to test suite -utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) +utest_LDADD = $(top_builddir)/libocc_control.la -lstdc++fs + +utest_SOURCES = utest.cpp \ + TestI2cOcc.cpp + +utest_CPPFLAGS = $(GTEST_CPPFLAGS) \ + $(AM_CPPFLAGS) + utest_CXXFLAGS = $(PTHREAD_CFLAGS) -utest_LDFLAGS = -lgtest_main -lgtest \ - $(PTHREAD_LIBS) \ - $(OESDK_TESTCASE_FLAGS) \ - $(SYSTEMD_LIBS) \ - ${SDBUSPLUS_LIBS} \ - $(OPENPOWER_DBUS_INTERFACES_LIBS) \ - $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ - -lstdc++fs -utest_SOURCES = utest.cpp -utest_LDADD = $(top_builddir)/powercap.o \ - $(top_builddir)/occ_status.o \ - $(top_builddir)/occ_device.o \ - $(top_builddir)/occ_errors.o \ - $(top_builddir)/i2c_occ.o \ - $(top_builddir)/utils.o \ - $(top_builddir)/org/open_power/OCC/Device/error.o + +utest_LDFLAGS = -lgmock_main \ + $(PTHREAD_LIBS) \ + $(OESDK_TESTCASE_FLAGS) |