blob: 2026535699e8a573fe65e90ae426440436a48968 [file] [log] [blame]
Gunnar Mills1ea62e12017-03-27 21:49:16 -05001AM_CPPFLAGS = -I$(top_srcdir)
2
3# gtest unit tests which run during a 'make check'
4check_PROGRAMS = utest
5
6# Run all 'check' test programs
7TESTS = $(check_PROGRAMS)
8
9# Build/add utest to test suite
Gunnar Mills2a6981b2017-10-15 17:05:18 -050010utest_CPPFLAGS = \
11 -Igtest \
12 $(GTEST_CPPFLAGS) \
13 $(AM_CPPFLAGS)
14
15utest_CXXFLAGS = \
16 $(PTHREAD_CFLAGS) \
17 $(PHOSPHOR_LOGGING_CFLAGS) \
18 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
19
20utest_LDFLAGS = \
21 -lgtest_main \
22 -lgtest \
23 $(PTHREAD_LIBS) \
24 $(OESDK_TESTCASE_FLAGS) \
25 $(PHOSPHOR_LOGGING_LIBS) \
26 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
27 -lssl \
28 -lcrypto
Gunnar Mills1ea62e12017-03-27 21:49:16 -050029
Adriana Kobylak4772a942018-10-09 15:26:44 -050030utest_SOURCES = \
Lei YUed1c1dc2019-03-01 16:00:26 +080031 ../activation.cpp \
32 ../version.cpp \
33 ../item_updater.cpp \
Lei YUed1c1dc2019-03-01 16:00:26 +080034 ../image_verify.cpp \
Lei YUe4994462019-03-14 14:41:53 +080035 ../utils.cpp \
Lei YUed1c1dc2019-03-01 16:00:26 +080036 ../msl_verify.cpp \
37 ../ubi/activation_ubi.cpp \
38 ../ubi/item_updater_ubi.cpp \
39 ../ubi/serialize.cpp \
40 ../ubi/watch.cpp \
Lei YU716de5b2019-03-01 16:03:53 +080041 ../static/item_updater_static.cpp \
42 ../static/activation_static.cpp \
Lei YUb1501342019-03-01 16:23:29 +080043 test_signature.cpp \
44 test_version.cpp \
Lei YU07830762019-03-01 17:17:28 +080045 test_item_updater_static.cpp \
Adriana Kobylak4772a942018-10-09 15:26:44 -050046 msl_verify.cpp
Lei YUed1c1dc2019-03-01 16:00:26 +080047
Lei YU716de5b2019-03-01 16:03:53 +080048utest_LDADD = -lstdc++fs