summaryrefslogtreecommitdiffstats
path: root/lib/tests/Makefile.am
blob: ba0973c9fb4fad095c9f2e5f36aadb15c9ceae59 (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

noinst_PROGRAMS = @EXTRA_TEST@

# These two lines support "make check", but we use "make test"
TESTS = @EXTRA_TEST@
check_PROGRAMS = @EXTRA_TEST@

TAP_LIB_DIR = $(top_srcdir)/@TAP_DIR@/src
TAP_O = $(TAP_LIB_DIR)/tap.o
INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -I$(TAP_LIB_DIR)

EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts

np_test_files = config-dos.ini config-opts.ini config-tiny.ini plugin.ini plugins.ini
EXTRA_DIST = test_all.t $(np_test_files)

AM_CFLAGS = -g -I..

LIBS = @LIBINTL@

test_utils_LDADD = ../utils_base.o $(TAP_O)

test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a $(TAP_O)

test_tcp_LDADD = ../utils_tcp.o $(TAP_O)

test_cmd_LDADD = ../utils_cmd.o ../utils_base.o $(TAP_O)

test_base64_LDADD = $(top_srcdir)/gl/base64.o $(TAP_O)

test_ini_LDADD = ../utils_base.o ../parse_ini.o $(TAP_O)

test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o $(TAP_O)

test: ${noinst_PROGRAMS}
	perl ./test_all.t $(EXTRA_PROGRAMS)

test-debug: ${noinst_PROGRAMS}
	perl ./test_all.t -v $(EXTRA_PROGRAMS)