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