+2008-05-01 Jim Meyering <meyering@redhat.com>
+
+ vc-list-files: make the stand-alone gnulib test work
+ * modules/vc-list-files-tests (configure.ac):
+ Define and AC_SUBST abs_aux_dir.
+ (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
+ $(abs_top_srcdir) to each script and having each of them
+ duplicate the work of setting PATH, set PATH here, using
+ the new variable, abs_aux_dir instead.
+ * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
+ * tests/test-vc-list-files-git.sh: Likewise.
+ Reported by Bruno Haible.
+
2008-05-01 Bruno Haible <bruno@clisp.org>
* lib/getndelim2.c (getndelim2): Fix newsize computation during
Depends-on:
configure.ac:
+abs_aux_dir=`cd "$ac_aux_dir"; pwd`
+AC_SUBST([abs_aux_dir])
Makefile.am:
TESTS += test-vc-list-files-git.sh
TESTS += test-vc-list-files-cvs.sh
-TESTS_ENVIRONMENT += abs_top_srcdir='$(abs_top_srcdir)'
+TESTS_ENVIRONMENT += PATH='$(abs_aux_dir)':"$$PATH"
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. */
-PATH="$abs_top_srcdir/build-aux":$PATH
-export PATH
-
tmpdir=vc-cvs-$$
trap 'st=$?; cd '"`pwd`"' && rm -rf $tmpdir; exit $st' 0
trap '(exit $?); exit $?' 1 2 13 15
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. */
-PATH="$abs_top_srcdir/build-aux":$PATH
-export PATH
-
if ( diff --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then
compare() { diff -u "$@"; }
elif ( cmp --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then