blob: 48e1872abbe6696acc97e79acd395d8b0739ff79 [file] [log] [blame]
Matt Spinler15ee6ae2019-07-08 16:50:06 -05001TESTS += $(check_PROGRAMS)
2
3check_PROGRAMS += \
Matt Spinler113ad282019-07-09 14:44:13 -05004 additional_data_test \
Matt Spinlerdf797f22019-07-09 15:39:51 -05005 bcd_time_test \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05006 log_id_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -05007 pel_test \
Matt Spinler89fa0822019-07-17 13:54:30 -05008 pel_manager_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -05009 private_header_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050010 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050011 section_header_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050012 stream_test \
13 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050014
Matt Spinlerd3335df2019-07-10 11:04:21 -050015pel_objects = \
16 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050017 $(top_builddir)/extensions/openpower-pels/log_id.o \
18 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050019 $(top_builddir)/extensions/openpower-pels/private_header.o \
20 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050021
Matt Spinler15ee6ae2019-07-08 16:50:06 -050022additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
23additional_data_test_CPPFLAGS = $(test_cppflags)
24additional_data_test_CXXFLAGS = $(test_cxxflags)
25additional_data_test_LDADD = $(test_ldadd)
26additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050027
28stream_test_SOURCES = %reldir%/stream_test.cpp
29stream_test_CPPFLAGS = $(test_cppflags)
30stream_test_CXXFLAGS = $(test_cxxflags)
31stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050032stream_test_LDFLAGS = $(test_ldflags)
33
34bcd_time_test_SOURCES = \
35 %reldir%/bcd_time_test.cpp
36bcd_time_test_CPPFLAGS = $(test_cppflags)
37bcd_time_test_CXXFLAGS = $(test_cxxflags)
38bcd_time_test_LDADD = \
39 $(test_ldadd) \
40 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050041bcd_time_test_LDFLAGS = $(test_ldflags)
42
43section_header_test_SOURCES = \
44 %reldir%/section_header_test.cpp
45section_header_test_CPPFLAGS = $(test_cppflags)
46section_header_test_CXXFLAGS = $(test_cxxflags)
47section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050048section_header_test_LDFLAGS = $(test_ldflags)
49
50private_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050051 %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050052private_header_test_CPPFLAGS = $(test_cppflags)
53private_header_test_CXXFLAGS = $(test_cxxflags)
54private_header_test_LDADD = \
55 $(test_ldadd) \
56 $(pel_objects)
57private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -050058
59user_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050060 %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -050061user_header_test_CPPFLAGS = $(test_cppflags)
62user_header_test_CXXFLAGS = $(test_cxxflags)
63user_header_test_LDADD = \
64 $(test_ldadd) \
65 $(pel_objects)
66user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050067
68log_id_test_SOURCES = \
69 %reldir%/log_id_test.cpp %reldir%/paths.cpp
70log_id_test_CPPFLAGS = $(test_cppflags)
71log_id_test_CXXFLAGS = $(test_cxxflags)
72log_id_test_LDADD = \
73 $(test_ldadd) \
74 $(top_builddir)/extensions/openpower-pels/log_id.o
75log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -050076
77pel_test_SOURCES = \
78 %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
79pel_test_CPPFLAGS = $(test_cppflags)
80pel_test_CXXFLAGS = $(test_cxxflags)
81pel_test_LDADD = \
82 $(test_ldadd) \
83 $(pel_objects)
84pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -050085
86repository_test_SOURCES = \
87 %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
88repository_test_CPPFLAGS = $(test_cppflags)
89repository_test_CXXFLAGS = $(test_cxxflags)
90repository_test_LDADD = \
91 $(test_ldadd) \
92 $(pel_objects) \
93 $(top_builddir)/extensions/openpower-pels/repository.o
94repository_test_LDFLAGS = $(test_ldflags)
95
96pel_manager_test_SOURCES = \
97 %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
98pel_manager_test_CPPFLAGS = $(test_cppflags)
99pel_manager_test_CXXFLAGS = $(test_cxxflags)
100pel_manager_test_LDADD = \
101 $(test_ldadd) \
102 $(pel_objects) \
103 $(top_builddir)/extensions/openpower-pels/manager.o \
104 $(top_builddir)/extensions/openpower-pels/repository.o
105pel_manager_test_LDFLAGS = $(test_ldflags)