Make a bunch of tools available in the testsuite root environment
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 14:06:42 +0000 (17:06 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 14:06:42 +0000 (17:06 +0300)
- We'll need shell and various other bits in order to do many
  things wrt specs and builds in the root...

tests/Makefile.am

index 030c592..6255732 100644 (file)
@@ -86,6 +86,7 @@ testing$(bindir)/rpmbuild: ../rpmbuild
        (cd ${top_builddir} && \
                  $(MAKE) DESTDIR=`pwd`/${subdir}/testing install)
        cp -r data/ testing/
+       for prog in gzip cat patch tar sh chmod; do p=`which $${prog}`; ln -s $${p} testing/$${p}; done
 
 check_DATA = atconfig atlocal $(TESTSUITE)
 check_DATA += testing$(bindir)/rpmbuild