]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: allow overriding of etags/ctags programs
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 21:08:11 +0000 (23:08 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 21:08:11 +0000 (23:08 +0200)
* t/ctags.sh, t/etags.sh: Here, for better coverage and debuggability.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/ctags.sh
t/etags.sh

index 196cad14480dbc2d1b64dcb8ec800e7a63372b1c..f3f8a6a5d94f7017c39300ff1d2c0eac8b4e2abf 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test vi-style tags.
 
-required=ctags
+required=${CTAGS:=ctags}
 . ./defs || exit 1
 
 cat >> configure.ac << 'END'
@@ -100,8 +100,8 @@ $AUTOCONF
 $AUTOMAKE -i
 
 ./configure
-$MAKE test-ctags
-$MAKE distcheck
+$MAKE test-ctags CTAGS="$CTAGS"
+$MAKE distcheck CTAGS="$CTAGS"
 
 $MAKE distclean
 find . -name tags | grep . && exit 1
index c8a6e9042e8eab9d908aee443dd3b41a0cbf1b45..aa2f0e0cfc8b148979c1e07e1816e0f12f266b2c 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure tags and subdirs work correctly.  Bug report by
 # François Pinard, and later by Akim Demaille.
 
-required=etags
+required=${ETAGS:=etags}
 . ./defs || exit 1
 
 cat >> configure.ac << 'END'
@@ -84,8 +84,8 @@ $AUTOCONF
 $AUTOMAKE -i
 
 ./configure
-$MAKE test-tags
-$MAKE distcheck
+$MAKE test-tags ETAGS="$ETAGS"
+$MAKE distcheck ETAGS="$ETAGS"
 
 $MAKE distclean
 find . -name TAGS | grep . && exit 1