2 noinst_PROGRAMS = @EXTRA_TEST@
4 # These two lines support "make check", but we use "make test"
6 check_PROGRAMS = @EXTRA_TEST@
8 TAP_LIB_DIR = $(top_srcdir)/@TAP_DIR@/src
9 INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -I$(TAP_LIB_DIR)
11 EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts
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
15 EXTRA_DIST = $(np_test_scripts) $(np_test_files)
19 test_utils_SOURCES = test_utils.c
20 test_utils_CFLAGS = -g -I..
21 test_utils_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
22 test_utils_LDADD = ../utils_base.o
24 test_disk_SOURCES = test_disk.c
25 test_disk_CFLAGS = -g -I..
26 test_disk_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
27 test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a
29 test_tcp_SOURCES = test_tcp.c
30 test_tcp_CFLAGS = -g -I..
31 test_tcp_LDFLAGS = -L$(TAP_LIB_DIR) -ltap
32 test_tcp_LDADD = ../utils_tcp.o
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
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
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
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
54 test: ${noinst_PROGRAMS}
55 perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)
57 test-debug: ${noinst_PROGRAMS}
58 perl -MTest::Harness -e '$$Test::Harness::verbose=1; $$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)