installcheck-testsuite:
am_running_installcheck=yes $(MAKE) check
+# Run the testsuite without skipping expensive tests by default.
+check-expensive installcheck-expensive: %-expensive:
+ $(MAKE) $* RUN_EXPENSIVE_TESTS=yes
+
# Performance tests.
perf_TESTS = $(wildcard $(srcdir)/t/perf/*.sh) \
$(wildcard $(srcdir)/t/perf/*.tap)
: ${abs_builddir='@abs_builddir@'}
: ${PATH_SEPARATOR='@PATH_SEPARATOR@'}
+# If a test is called directly, it should be unconditionally run,
+# even it it's expensive.
+RUN_EXPENSIVE_TESTS=yes; export RUN_EXPENSIVE_TESTS
+
# For sourcing of extra "shell libraries" by our test scripts. As per
# POSIX, sourcing a file with '.' will cause it to be looked up in $PATH
# in case it is given with a relative name containing no slashes.
Running the tests
-----------------
- To run all tests:
+ To run (almost) all tests:
make -k check
+ With the above, few tests (which are very time-consuming) will be skipped.
+ If you want to run them too, for extra coverage, you can use either of:
+
+ make -k check-expensive
+ make -k check RUN_EXPENSIVE_TESTS=yes
+
By default, verbose output of a test 't/foo.sh' or 't/foo.tap' is retained
in the log file 't/foo.log'. Also, a summary log is created in the file
'test-suite.log' (in the top-level directory).
## Auxiliary shell functions. ##
## ---------------------------- ##
+expensive_()
+{
+ if test x"$RUN_EXPENSIVE_TESTS" != x"yes"; then
+ skip_all_ 'expensive: disabled by default'
+ fi
+}
+
# Tell whether we should keep the test directories around, even in
# case of success. By default, we don't.
am_keeping_testdirs ()
. ./defs || exit 1
+expensive_
+
echo AC_OUTPUT >> configure.ac
file=an-empty-file-with-a-long-name
. ./defs || exit 1
+expensive_
+
echo AC_OUTPUT >> configure.ac
cat > Makefile.am << 'END'
. ./defs || exit 1
+expensive_
+
for s in trivial-test-driver extract-testsuite-summary.pl; do
cp "$am_testauxdir/$s" . || fatal_ "failed to fetch auxiliary script $s"
done