summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-04-05 14:21:27 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-04-05 14:21:27 +0300
commitb44b9ea94d229c07e56e242fa5625dea02de6a75 (patch)
treec616832a50f334f17574e84a9d0c764e8d33e000 /tests
parent6cc1680082a34037b889d824b80a006081b97363 (diff)
downloadrpm-b44b9ea94d229c07e56e242fa5625dea02de6a75.tar.gz
rpm-b44b9ea94d229c07e56e242fa5625dea02de6a75.tar.bz2
rpm-b44b9ea94d229c07e56e242fa5625dea02de6a75.zip
Arrange unified /bin <-> $(bindir) in test-suite root
- Rpm traditionally insists on putting itself into /bin and expects to find various things, especially /bin/sh there as well. This is normally the case, but on systems where the host /bin is symlink to eg /usr/bin, the test-suite /bin will be empty except for rpm itself causing a big number of bogus test-suite failures. Making test-suite root bin/ always a symlink to $(bindir) avoids this issue and works whether the host /bin is a real directory or not.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dca36b295..cc82a7d48 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -91,6 +91,9 @@ EXTRA_DIST += atlocal.in
# Hack: Abusing testing$(bindir)/rpmbuild as stamp file
testing$(bindir)/rpmbuild: ../rpmbuild
rm -rf testing
+ # Arrange unified /bin vs $(bindir) to keep things simple
+ mkdir -p testing/$(bindir)
+ ln -s ./$(bindir) testing/bin
(cd ${top_builddir} && \
$(MAKE) DESTDIR=`pwd`/${subdir}/testing install)
cp -r data/ testing/