diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-08-21 15:18:58 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-08-21 15:18:58 +0000 |
commit | f31cd40f7a014c076615c4a1c28b989162a6ca9d (patch) | |
tree | 4b5c4f0aa4080fd99271a60a904990500b6ad933 /lib/tests/Makefile.am | |
parent | 6a8240dd78716967e1eccb32ccfd966f321258b6 (diff) | |
download | monitoring-plugins-f31cd40f7a014c076615c4a1c28b989162a6ca9d.tar.gz |
Correctly link to included libtap. Simplify invoking test scripts.
Removed basename test as we should use base_name from GNUlib which is
tested separately
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2042 f882894a-f735-0410-b71e-b25c423dba1c
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 9eeef93e..ba0973c9 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 | ||