summaryrefslogtreecommitdiffstats
path: root/tests/Makemodule.am
diff options
context:
space:
mode:
authorKarel Zak2012-08-03 21:24:51 +0200
committerKarel Zak2012-08-03 21:24:51 +0200
commit1b03e2cd33a059fdd355c52899e151130777c44f (patch)
treeb6eac3caf34c4bfb0127e67819b32190a11f0cea /tests/Makemodule.am
parentbuild-sys: add tests/run-nonroot.sh to automake file (diff)
downloadkernel-qcow2-util-linux-1b03e2cd33a059fdd355c52899e151130777c44f.tar.gz
kernel-qcow2-util-linux-1b03e2cd33a059fdd355c52899e151130777c44f.tar.xz
kernel-qcow2-util-linux-1b03e2cd33a059fdd355c52899e151130777c44f.zip
tests: make compatible with autotools
The command 'make check' is called from 'make distcheck' (which is used to generate official util-linux tarballs). It means that tests/ stuff has to be compatible with autotools and differentiate between source and build directories. * remove run-nonroot.sh (merged into run.sh * remove commands.sh.in * all tests and top level run.sh accept --builddir and --srcdir command line options * functions.sh modified to use $top_builddir/tests for output files Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/Makemodule.am')
-rw-r--r--tests/Makemodule.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/Makemodule.am b/tests/Makemodule.am
index a5e26bfb1..00da7d35d 100644
--- a/tests/Makemodule.am
+++ b/tests/Makemodule.am
@@ -4,12 +4,17 @@ include tests/helpers/Makemodule.am
EXTRA_DIST += \
tests/expected \
tests/functions.sh \
+ tests/commands.sh \
tests/run.sh \
- tests/run-nonroot.sh \
tests/ts
clean-local-tests:
- rm -rf output diff
+ rm -rf $(top_builddir)/tests/output $(top_builddir)/tests/diff
-TESTS += tests/run-nonroot.sh
CLEAN_LOCALS += clean-local-tests
+
+
+check-local-tests: $(check_PROGRAMS)
+ $(top_srcdir)/tests/run.sh --srcdir=$(abs_top_srcdir) --builddir=$(abs_top_builddir) --nonroot
+
+CHECK_LOCALS += check-local-tests