summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-06-03 11:45:29 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-06-03 11:45:29 +0200
commit9137db89c88d5fceed1c80beeb2969d36a9e72c9 (patch)
treecca04cb476d4a489102a32291b4526d1ce3af51f /t
parentb4eefc79759fcb2c5941a65759d242488af8ed1a (diff)
downloadautomake-9137db89c88d5fceed1c80beeb2969d36a9e72c9.tar.gz
tests: fix spurious failure when 'etags' program is Exuberant Ctags
Fixes automake bug#14517. * t/tags-pr12372.sh: If the 'etags' program in use supports the '--langmap' option, use it. That is required to avoid spurious failures with Exuberant Ctags (at least version 5.8), which by default do not generate any tags for file extensions it doesn't recognize. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't')
-rw-r--r--t/tags-pr12372.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/tags-pr12372.sh b/t/tags-pr12372.sh
index 4eeb9be96..657be6088 100644
--- a/t/tags-pr12372.sh
+++ b/t/tags-pr12372.sh
@@ -63,7 +63,17 @@ $AUTOMAKE
./configure
-$MAKE
+# Exuberant Ctags (at least version 5.8) do not generate any tags
+# for file extensions it doesn't recognize. This can be fixed by
+# using the '--langmap' option. But we must be careful, because
+# etags from Emacs (at least version 23.4) doesn't recognize that
+# option.
+if etags --help | grep '.*--langmap'; then
+ run_make ETAGSFLAGS="--langmap=c:+.pc"
+else
+ $MAKE
+fi
+
cat TAGS
cat sub/TAGS
$FGREP foo-main.pc TAGS