From 80433126735cc6de3368d1fc41215d493607e42e Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Wed, 28 Feb 2018 17:59:50 +0100 Subject: [PATCH] use autotools tap driver to run test suite --- Makefile.am | 19 ++++++++++++++++++- configure.ac | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7428c15..7062456 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,20 @@ SUBDIRS = bin conf lib resources templates -EXTRA_DIST = LICENSE.txt README.md +AM_TESTS_ENVIRONMENT = PERL5LIB='$(srcdir)/lib'; export PERL5LIB; +TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ + $(top_srcdir)/build-aux/tap-driver.sh + +TESTS = \ + t/01compile.t \ + t/02critic.t \ + t/account-manager.cgi.t \ + t/account-manager.t \ + t/metadata.t \ + t/tools.t + +EXTRA_DIST = \ + LICENSE.txt \ + README.md \ + t/edugain.xml \ + t/manager.conf \ + $(TESTS) diff --git a/configure.ac b/configure.ac index 1b3f350..5cc705d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ AC_PREREQ(2.59) AC_INIT([Account Manager], 0.1) AM_INIT_AUTOMAKE([foreign]) +AC_REQUIRE_AUX_FILE([tap-driver.sh]) wwwdir=$datadir/account-manager/www modulesdir=$datadir/account-manager/lib -- GitLab