From 548083b2ea865474915fc8a9ddd361e997585a02 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 13 Jul 2006 12:50:23 +0000 Subject: Move new util_* functions to lib/ git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c --- lib/tests/Makefile.am | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lib/tests/Makefile.am (limited to 'lib/tests/Makefile.am') diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am new file mode 100644 index 00000000..63dee76e --- /dev/null +++ b/lib/tests/Makefile.am @@ -0,0 +1,28 @@ + +noinst_PROGRAMS = @EXTRA_TEST@ + +# These two lines support "make check", but we use "make test" +TESTS = @EXTRA_TEST@ +check_PROGRAMS = @EXTRA_TEST@ + +INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/intl -I$(top_srcdir)/plugins + +EXTRA_PROGRAMS = test_utils test_disk + +EXTRA_DIST = test_utils.t test_disk.t + +LIBS = @LIBINTL@ + +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 + +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 + +test: ${noinst_PROGRAMS} + perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) + -- cgit v1.2.3