tests: prefer using 'is_newest' over 'ls -t' hacks
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 16:15:21 +0000 (18:15 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 16:48:17 +0000 (18:48 +0200)
commit13dd512dae7f338426dfb152bc77c4c5fdd25278
treeff6dc7b943a73cfd62b50e1cacd7ee3a626bae97
parentdc18830f56e88efa2cd92e663d30b9d4f0f27f1b
tests: prefer using 'is_newest' over 'ls -t' hacks

To verify that a file 'new' is newer than the file 'old', it's much
cleaner to use "is_newest new old" rather than the more clumsy
"ls -t". Adjust several of our tests accordingly.

* syntax-checks.mk (sc_tests_ls_t): New check, guard against uses
of "ls -t" and similar.
(syntax_check_rules): Add it.
* t/maken.sh: Adjust.
* t/autohdr4.sh: Likewise.
* t/extradep2.sh: Likewise.
* t/lex-depend-cxx.sh: Likewise.
* t/extradep.sh: Likewise.
* t/yacc-depend2.sh: Likewise.
* t/yacc-pr204.sh: Likewise.
* t/lex-pr204.sh: Likewise.
* t/yacc8.sh: Likewise.
* t/acloca13.sh: Likewise.
* t/lex-depend.sh: Likewise, and enhance.
* t/acloca14.sh: Likewise.
* t/aclocal7.sh: Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
14 files changed:
syntax-checks.mk
t/acloca13.sh
t/acloca14.sh
t/aclocal7.sh
t/autohdr4.sh
t/extradep.sh
t/extradep2.sh
t/lex-depend-cxx.sh
t/lex-depend.sh
t/lex-pr204.sh
t/maken.sh
t/yacc-depend2.sh
t/yacc-pr204.sh
t/yacc8.sh