summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-11-14 09:58:04 +0100
committerAles Kozumplik <akozumpl@redhat.com>2011-11-16 09:32:07 +0100
commitf6baacaa07bc1069309c0afbf1369ea664c59742 (patch)
treec3828a1e04f829756e986c4c5f33b4c77db6cb64 /tests
parentf0d7459e51c93f89c014eff9d20cf81fccdbf1c3 (diff)
downloadrpm-f6baacaa07bc1069309c0afbf1369ea664c59742.tar.gz
rpm-f6baacaa07bc1069309c0afbf1369ea664c59742.tar.bz2
rpm-f6baacaa07bc1069309c0afbf1369ea664c59742.zip
Do not attempt running the test suite without fakechroot (ticket #851).
Partially resolves ticket #851.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6f84093f4..d2b5254b3 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -99,8 +99,14 @@ testing$(bindir)/rpmbuild: ../rpmbuild
check_DATA = atconfig atlocal $(TESTSUITE)
check_DATA += testing$(bindir)/rpmbuild
+if HAVE_FAKECHROOT
check-local: $(check_DATA)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) ||:
+else
+check-local:
+ echo "you need to have fakechroot installed"
+ exit 1
+endif !HAVE_FAKECHROOT
installcheck-local: $(check_DATA)
$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \