summaryrefslogtreecommitdiffstats
path: root/lib/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/Makefile.am')
-rw-r--r--lib/tests/Makefile.am57
1 files changed, 19 insertions, 38 deletions
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
index 9eeef93e..ba0973c9 100644
--- a/lib/tests/Makefile.am
+++ b/lib/tests/Makefile.am
@@ -6,54 +6,35 @@ TESTS = @EXTRA_TEST@
6check_PROGRAMS = @EXTRA_TEST@ 6check_PROGRAMS = @EXTRA_TEST@
7 7
8TAP_LIB_DIR = $(top_srcdir)/@TAP_DIR@/src 8TAP_LIB_DIR = $(top_srcdir)/@TAP_DIR@/src
9TAP_O = $(TAP_LIB_DIR)/tap.o
9INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -I$(TAP_LIB_DIR) 10INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -I$(TAP_LIB_DIR)
10 11
11EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts 12EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts
12 13
13np_test_scripts = test_base64.t test_cmd.t test_disk.t test_ini.t test_opts.t test_tcp.t test_utils.t
14np_test_files = config-dos.ini config-opts.ini config-tiny.ini plugin.ini plugins.ini 14np_test_files = config-dos.ini config-opts.ini config-tiny.ini plugin.ini plugins.ini
15EXTRA_DIST = $(np_test_scripts) $(np_test_files) 15EXTRA_DIST = test_all.t $(np_test_files)
16
17AM_CFLAGS = -g -I..
16 18
17LIBS = @LIBINTL@ 19LIBS = @LIBINTL@
18 20
19test_utils_SOURCES = test_utils.c 21test_utils_LDADD = ../utils_base.o $(TAP_O)
20test_utils_CFLAGS = -g -I.. 22
21test_utils_LDFLAGS = -L$(TAP_LIB_DIR) -ltap 23test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a $(TAP_O)
22test_utils_LDADD = ../utils_base.o 24
23 25test_tcp_LDADD = ../utils_tcp.o $(TAP_O)
24test_disk_SOURCES = test_disk.c 26
25test_disk_CFLAGS = -g -I.. 27test_cmd_LDADD = ../utils_cmd.o ../utils_base.o $(TAP_O)
26test_disk_LDFLAGS = -L$(TAP_LIB_DIR) -ltap 28
27test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a 29test_base64_LDADD = $(top_srcdir)/gl/base64.o $(TAP_O)
28 30
29test_tcp_SOURCES = test_tcp.c 31test_ini_LDADD = ../utils_base.o ../parse_ini.o $(TAP_O)
30test_tcp_CFLAGS = -g -I.. 32
31test_tcp_LDFLAGS = -L$(TAP_LIB_DIR) -ltap 33test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o $(TAP_O)
32test_tcp_LDADD = ../utils_tcp.o
33
34test_cmd_SOURCES = test_cmd.c
35test_cmd_CFLAGS = -g -I..
36test_cmd_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
37test_cmd_LDADD = ../utils_cmd.o ../utils_base.o
38
39test_base64_SOURCES = test_base64.c
40test_base64_CFLAGS = -g -I..
41test_base64_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
42test_base64_LDADD = $(top_srcdir)/gl/base64.o
43
44test_ini_SOURCES = test_ini.c
45test_ini_CFLAGS = -g -I..
46test_ini_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
47test_ini_LDADD = ../utils_base.o ../parse_ini.o
48
49test_opts_SOURCES = test_opts.c
50test_opts_CFLAGS = -g -I..
51test_opts_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
52test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o
53 34
54test: ${noinst_PROGRAMS} 35test: ${noinst_PROGRAMS}
55 perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) 36 perl ./test_all.t $(EXTRA_PROGRAMS)
56 37
57test-debug: ${noinst_PROGRAMS} 38test-debug: ${noinst_PROGRAMS}
58 perl -MTest::Harness -e '$$Test::Harness::verbose=1; $$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) 39 perl ./test_all.t -v $(EXTRA_PROGRAMS)
59 40