blob: 9ee991d210a8c65333156f8b4449b688be1521c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
AM_CFLAGS = -Wall -Wextra -Werror $(HARDENING_CFLAGS) \
-I$(top_srcdir)/tacplus-daemon -DVERSION=\"$(VERSION)\" \
$(LIBTAC_CFLAGS) $(LIBTAC_EVENT_CFLAGS) $(SYSTEMD_CFLAGS) \
$(GLIB_CFLAGS) -DPROG="\"$(PACKAGE)\""
AM_CXXFLAGS = -std=c++11 -Wall -Wextra -Werror -Wno-missing-field-initializers \
$(HARDENING_CXXFLAGS) \
$(cpputest_CFLAGS) -I$(top_srcdir)/tacplus-daemon \
$(LIBTAC_CFLAGS) $(LIBTAC_EVENT_CFLAGS) $(SYSTEMD_CFLAGS) \
$(GLIB_CFLAGS) -DVERSION=\"$(VERSION)\" -DPROG="\"$(PACKAGE)\""
AM_CPPFLAGS = $(cpputest_CFLAGS)
AM_LDFLAGS = $(HARDENING_CXXFLAGS)
LDADD = $(cpputest_LIBS) $(LIBTAC_LIBS) $(LIBTAC_EVENT_LIBS) \
$(SYSTEMD_LIBS) $(GLIB_LIBS) -lpthread -lrt
check_PROGRAMS = queue_tester server_connect_tester utils_tester parser_tester \
transaction_tester
utils_tester_SOURCES = utilsTester.cpp ut_utils.c testMain.cpp ../utils.c
utils_tester_LDADD = $(LDADD)
parser_tester_SOURCES = parserTester.cpp testMain.cpp ../parser.c \
../tacplus_srv_conn.c ../utils.c ../statistics.c \
../dbus_service.c ../transaction.c ../queue.c \
../global.c
parser_tester_LDADD = $(LDADD)
server_connect_tester_SOURCES = serverConnectTester.cpp testMain.cpp \
ut_utils.c ../tacplus_srv_conn.c ../parser.c \
../utils.c ../statistics.c ../dbus_service.c \
../transaction.c ../queue.c ../global.c
server_connect_tester_LDADD = $(LDADD)
server_connect_tester_LDFLAGS = -Wl,-wrap,tac_connect_single \
-Wl,-wrap,cur_mono_time \
-Wl,-wrap,tacplusd_go_online \
-Wl,-wrap,tacplusd_go_offline \
-Wl,-wrap,tacplusd_online
queue_tester_SOURCES = queueTester.cpp testMain.cpp ../queue.c
queue_tester_LDADD = $(LDADD)
transaction_tester_SOURCES = transactionTester.cpp testMain.cpp ut_utils.c \
../transaction.c ../tacplus_srv_conn.c \
../parser.c ../utils.c ../statistics.c \
../dbus_service.c ../queue.c ../global.c
transaction_tester_LDADD = $(LDADD)
TESTS = $(check_PROGRAMS)
|