2013-11-26 22:53:19 +00:00
|
|
|
|
|
|
|
noinst_PROGRAMS = @EXTRA_TEST@
|
|
|
|
|
|
|
|
# These two lines support "make check", but we use "make test"
|
|
|
|
TESTS = @EXTRA_TEST@
|
|
|
|
check_PROGRAMS = @EXTRA_TEST@
|
|
|
|
|
2013-11-26 22:53:44 +00:00
|
|
|
INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:54:57 +00:00
|
|
|
EXTRA_PROGRAMS = test_utils test_disk test_tcp test_cmd test_base64
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:54:57 +00:00
|
|
|
EXTRA_DIST = test_utils.t test_disk.t test_tcp.t test_cmd.t test_base64.t
|
2013-11-26 22:53:19 +00:00
|
|
|
|
|
|
|
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
|
2013-11-26 22:53:44 +00:00
|
|
|
test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:54:42 +00:00
|
|
|
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
|
|
|
|
|
2013-11-26 22:54:57 +00:00
|
|
|
test_base64_SOURCES = test_base64.c
|
|
|
|
test_base64_CFLAGS = -g -I..
|
|
|
|
test_base64_LDFLAGS = -L/usr/local/lib -ltap
|
|
|
|
test_base64_LDADD = ../base64.o
|
|
|
|
|
2013-11-26 22:53:19 +00:00
|
|
|
test: ${noinst_PROGRAMS}
|
|
|
|
perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)
|
|
|
|
|
2013-11-26 22:54:57 +00:00
|
|
|
test-debug: ${noinst_PROGRAMS}
|
|
|
|
perl -MTest::Harness -e '$$Test::Harness::verbose=1; $$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)
|
|
|
|
|