Code

Use the installed tap library instead of requesting a compiled object
[nagiosplug.git] / plugins / tests / Makefile.am
2 noinst_PROGRAMS = @EXTRA_TEST@
4 # These two lines support "make check", but we use "make test"
5 TESTS = @EXTRA_TEST@
6 check_PROGRAMS = @EXTRA_TEST@
8 INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/intl 
10 EXTRA_PROGRAMS = test_utils
12 EXTRA_DIST = test_utils.t
14 LIBS = @LIBINTL@
16 test_utils_SOURCES = test_utils.c
17 test_utils_CFLAGS = -g -I..
18 test_utils_LDFLAGS = -L..
19 test_utils_LDADD = ../utils.o $(TAPLIBS)
21 test: ${noinst_PROGRAMS}
22         perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)