X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=lib%2Ftests%2FMakefile.am;h=694baf0056761fb290160bdfe00ff4bcc78c6764;hb=4b2265d20c8651046b5e8b65000d93bbbbb481f3;hp=bd25ccfe225c5a7c449aafc999608d053f29c133;hpb=abbad00edd7f5f3d33ae77a9d5ac338e5bea5fb3;p=nagiosplug.git diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am index bd25ccf..694baf0 100644 --- a/lib/tests/Makefile.am +++ b/lib/tests/Makefile.am @@ -7,36 +7,28 @@ check_PROGRAMS = @EXTRA_TEST@ INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 +EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64 test_ini1 test_ini3 test_opts1 test_opts2 test_opts3 -EXTRA_DIST = test_utils.t test_disk.t test_tcp.t test_cmd.t test_base64.t +np_test_scripts = test_base64.t test_cmd.t test_disk.t test_ini1.t test_ini3.t test_opts1.t test_opts2.t test_opts3.t test_tcp.t test_utils.t +np_test_files = config-dos.ini config-opts.ini config-tiny.ini plugin.ini plugins.ini +EXTRA_DIST = $(np_test_scripts) $(np_test_files) -LIBS = @LIBINTL@ +LIBS = @LTLIBINTL@ -test_utils_SOURCES = test_utils.c -test_utils_CFLAGS = -g -I.. -test_utils_LDFLAGS = -L/usr/local/lib -ltap -test_utils_LDADD = ../utils_base.o +if USE_LIBTAP_LOCAL +tap_cflags = -I$(top_srcdir)/tap +tap_ldflags = -L$(top_srcdir)/tap +tap_ldadd = $(top_srcdir)/gl/libgnu.a +else +## Shouldn't we detect that?? +tap_ldflags = -L/usr/local/lib +endif -test_disk_SOURCES = test_disk.c -test_disk_CFLAGS = -g -I.. -test_disk_LDFLAGS = -L/usr/local/lib -ltap -test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a +AM_CFLAGS = -g -I$(top_srcdir)/lib -I$(top_srcdir)/gl $(tap_cflags) +AM_LDFLAGS = $(tap_ldflags) -ltap +LDADD = $(top_srcdir)/lib/libnagiosplug.a $(top_srcdir)/gl/libgnu.a -test_tcp_SOURCES = test_tcp.c -test_tcp_CFLAGS = -g -I.. -test_tcp_LDFLAGS = -L/usr/local/lib -ltap -test_tcp_LDADD = ../utils_tcp.o - -test_cmd_SOURCES = test_cmd.c -test_cmd_CFLAGS = -g -I.. -test_cmd_LDFLAGS = -L/usr/local/lib -ltap -test_cmd_LDADD = ../utils_cmd.o ../utils_base.o - -test_base64_SOURCES = test_base64.c -test_base64_CFLAGS = -g -I.. -test_base64_LDFLAGS = -L/usr/local/lib -ltap -test_base64_LDADD = $(top_srcdir)/gl/base64.o +SOURCES = test_utils.c test_disk.c test_tcp.c test_cmd.c test_base64.c test_ini1.c test_ini3.c test_opts1.c test_opts2.c test_opts3.c test: ${noinst_PROGRAMS} perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)