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