summaryrefslogtreecommitdiff
path: root/modules/vc-list-files-tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-01 21:01:36 +0200
committerJim Meyering <meyering@redhat.com>2008-05-01 21:01:36 +0200
commit50f8b70f0dba1bfa3242c6de9991fdd04457ca04 (patch)
treec277d87ccc54542ac015f803fdf234981bf9c21e /modules/vc-list-files-tests
parentb6ade08beedcfa4c01d642ee383618b22ab09b45 (diff)
downloadgnulib-50f8b70f0dba1bfa3242c6de9991fdd04457ca04.tar.gz
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.
Diffstat (limited to 'modules/vc-list-files-tests')
-rw-r--r--modules/vc-list-files-tests4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/vc-list-files-tests b/modules/vc-list-files-tests
index d0a4234606..2650c44453 100644
--- a/modules/vc-list-files-tests
+++ b/modules/vc-list-files-tests
@@ -5,8 +5,10 @@ tests/test-vc-list-files-cvs.sh
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"