1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Fix the new ctags test

* test/manual/etags/Makefile (ctags_update): Sort CTAGS* files
before comparing.  Patch by lu4nx <lx@shellcodes.org>.  (Bug#59544)

* .gitignore: Ignore CTAGS*.sorted files.
This commit is contained in:
Eli Zaretskii 2022-11-27 20:01:50 +02:00
parent 7bf393dcf0
commit 89a10ffcc4
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -158,6 +158,7 @@ test/manual/etags/srclist
test/manual/etags/regexfile
test/manual/etags/ETAGS
test/manual/etags/CTAGS
test/manual/etags/CTAGS*.sorted
test/manual/indent/*.new
test/lisp/gnus/mml-sec-resources/random_seed
test/lisp/play/fortune-resources/fortunes.dat

View File

@ -72,11 +72,15 @@ ctags_update: CTAGS.good_update ${infiles}
head -n 100 CTAGS.good_update > CTAGS
tail -n 100 CTAGS.good_update >> CTAGS
${RUN} ${CTAGS_PROG} -o CTAGS -u ${ARGS}
diff -u --suppress-common-lines --width=80 CTAGS.good_update CTAGS
sort CTAGS > CTAGS.sorted
sort CTAGS.good_update > CTAGS.good_update.sorted
diff -u --suppress-common-lines --width=80 CTAGS.good_update.sorted CTAGS.sorted
cp crlf CTAGS
${RUN} ${CTAGS_PROG} -o CTAGS -u ${ARGS}
diff -u --suppress-common-lines --width=80 CTAGS.good_crlf CTAGS
sort CTAGS > CTAGS.sorted
sort CTAGS.good_crlf > CTAGS.good_crlf.sorted
diff -u --suppress-common-lines --width=80 CTAGS.good_crlf.sorted CTAGS.sorted
ETAGS: ${infiles}
${RUN} ${ETAGS_PROG} ${OPTIONS} -o $@ ${ARGS}