blob: cbfacf3aad26ac59f70169d8306b43bca64f66c5 [file] [log] [blame]
Matt Spinlerb96fa322018-03-27 13:39:33 -05001AM_CPPFLAGS = -I$(top_srcdir)
2
3TESTS = $(check_PROGRAMS)
4
Matt Spinlera3c33e72018-05-23 13:02:51 -05005check_PROGRAMS = test_policy test_callout
Matt Spinlerb96fa322018-03-27 13:39:33 -05006
Matt Spinlera3c33e72018-05-23 13:02:51 -05007test_cppflags = \
8 -Igtest \
9 $(GTEST_CPPFLAGS) \
10 $(AM_CPPFLAGS)
Matt Spinlerb96fa322018-03-27 13:39:33 -050011
Matt Spinlera3c33e72018-05-23 13:02:51 -050012test_cxxflags = \
13 $(PTHREAD_CFLAGS) \
14 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
15 $(IBM_DBUS_INTERFACES_CFLAGS) \
16 $(SDBUSPLUS_CFLAGS) \
17 $(PHOSPHOR_LOGGING_CFLAGS)
18
19test_ldflags = \
20 -lgtest_main -lgtest \
21 -lstdc++fs \
22 $(PTHREAD_LIBS) \
23 $(OESDK_TESTCASE_FLAGS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
25 $(IBM_DBUS_INTERFACES_LIBS) \
26 $(SDBUSPLUS_LIBS)
27
28test_policy_CPPFLAGS = $(test_cppflags)
29test_policy_CXXFLAGS = $(test_cxxflags)
30test_policy_LDFLAGS = $(test_ldflags)
Matt Spinlerb96fa322018-03-27 13:39:33 -050031test_policy_SOURCES = test_policy.cpp
32test_policy_LDADD = \
33 $(top_builddir)/policy_table.o \
Matt Spinlera3c33e72018-05-23 13:02:51 -050034 $(top_builddir)/policy_find.o
35
36test_callout_CPPFLAGS = $(test_cppflags)
37test_callout_CXXFLAGS = $(test_cxxflags)
38test_callout_LDFLAGS = $(test_ldflags)
39test_callout_SOURCES = test_callout.cpp
40
Matt Spinlera3c33e72018-05-23 13:02:51 -050041test_callout_LDADD = \
Matt Spinlera3c33e72018-05-23 13:02:51 -050042 $(top_builddir)/callout.o
43
44