diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-11-28 03:22:39 -0500 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-11-28 03:22:39 -0500 |
| commit | 538b97cea63d68efbd9c9c67d9c41278cfd1ebad (patch) | |
| tree | 84e707f97fb82f1920fb7568241e8b5d8f71c0af /lib/tests/Makefile.am | |
| parent | d40abb2504b99e1318840ad1a5d9f4a340c465b5 (diff) | |
| download | monitoring-plugins-538b97cea63d68efbd9c9c67d9c41278cfd1ebad.tar.gz | |
Revert inclusion of libtap into nagiosplugins
(except for the NEWS file)
This reverts the following commits (latest first): f3e0909, 9f16b54, be8df51, f31cd40, 5270c7d, a25083f, f1bfe40, c503d85 and 6c476db
Diffstat (limited to 'lib/tests/Makefile.am')
| -rw-r--r-- | lib/tests/Makefile.am | 60 |
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@ | |||
| 5 | TESTS = @EXTRA_TEST@ | 5 | 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 | INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins |
| 9 | TAP_O = $(TAP_LIB_DIR)/tap.o $(TAP_LIB_DIR)/../lib/libgnu.la | ||
| 10 | INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -I$(TAP_LIB_DIR) | ||
| 11 | 9 | ||
| 12 | EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts | 10 | EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini test_opts |
| 13 | 11 | ||
| 12 | 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 | 13 | np_test_files = config-dos.ini config-opts.ini config-tiny.ini plugin.ini plugins.ini |
| 15 | EXTRA_DIST = test_all.t $(np_test_files) | 14 | EXTRA_DIST = $(np_test_scripts) $(np_test_files) |
| 16 | |||
| 17 | AM_CFLAGS = -g -I.. | ||
| 18 | 15 | ||
| 19 | LIBS = @LIBINTL@ | 16 | LIBS = @LIBINTL@ |
| 20 | 17 | ||
| 21 | test_utils_LDADD = ../utils_base.o $(TAP_O) | 18 | test_utils_SOURCES = test_utils.c |
| 22 | 19 | test_utils_CFLAGS = -g -I.. | |
| 23 | test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a $(TAP_O) | 20 | test_utils_LDFLAGS = -L/usr/local/lib -ltap |
| 24 | 21 | test_utils_LDADD = ../utils_base.o | |
| 25 | test_tcp_LDADD = ../utils_tcp.o $(TAP_O) | 22 | |
| 26 | 23 | test_disk_SOURCES = test_disk.c | |
| 27 | test_cmd_LDADD = ../utils_cmd.o ../utils_base.o $(TAP_O) | 24 | test_disk_CFLAGS = -g -I.. |
| 28 | 25 | test_disk_LDFLAGS = -L/usr/local/lib -ltap | |
| 29 | test_base64_LDADD = $(top_srcdir)/gl/base64.o $(TAP_O) | 26 | test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a |
| 30 | 27 | ||
| 31 | test_ini_LDADD = ../utils_base.o ../parse_ini.o $(TAP_O) | 28 | test_tcp_SOURCES = test_tcp.c |
| 32 | 29 | test_tcp_CFLAGS = -g -I.. | |
| 33 | test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o $(TAP_O) | 30 | test_tcp_LDFLAGS = -L/usr/local/lib -ltap |
| 31 | test_tcp_LDADD = ../utils_tcp.o | ||
| 32 | |||
| 33 | test_cmd_SOURCES = test_cmd.c | ||
| 34 | test_cmd_CFLAGS = -g -I.. | ||
| 35 | test_cmd_LDFLAGS = -L/usr/local/lib -ltap | ||
| 36 | test_cmd_LDADD = ../utils_cmd.o ../utils_base.o | ||
| 37 | |||
| 38 | test_base64_SOURCES = test_base64.c | ||
| 39 | test_base64_CFLAGS = -g -I.. | ||
| 40 | test_base64_LDFLAGS = -L/usr/local/lib -ltap | ||
| 41 | test_base64_LDADD = $(top_srcdir)/gl/base64.o | ||
| 42 | |||
| 43 | test_ini_SOURCES = test_ini.c | ||
| 44 | test_ini_CFLAGS = -g -I.. | ||
| 45 | test_ini_LDFLAGS = -L/usr/local/lib -ltap | ||
| 46 | test_ini_LDADD = ../utils_base.o ../parse_ini.o | ||
| 47 | |||
| 48 | test_opts_SOURCES = test_opts.c | ||
| 49 | test_opts_CFLAGS = -g -I.. | ||
| 50 | test_opts_LDFLAGS = -L/usr/local/lib -ltap | ||
| 51 | test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o | ||
| 34 | 52 | ||
| 35 | test: ${noinst_PROGRAMS} | 53 | test: ${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 | ||
| 38 | test-debug: ${noinst_PROGRAMS} | 56 | test-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 | ||
