Modernize and improve test scripts `dist*.test'.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 19 Jun 2010 09:25:26 +0000 (11:25 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 21 Jul 2010 21:36:06 +0000 (23:36 +0200)
commit4deaab9eaef915d4bef78e27e8e2d64d4629d01a
tree4ba570b4e1061de0f930d9d60894106d056cf20e
parent36fe4f389c0a835dfcdb0f58a8909eab43189af1
Modernize and improve test scripts `dist*.test'.

* tests/distcleancheck.test: Do not add useless `-e' option to
a $MAKE call.  Extend test by grepping stderr of make.
* tests/distcom2.test: Do not run the same test script on the
Makefile.in twice, but save its output in an intermediate file
instead.  Make grepping of DIST_COMMON definition stricter.
Display the content of more files, to ease debugging.  Add a
trailing `:' command.  Improved heading comments w.r.t. sister
test(s).
* tests/distcom6.test: Likewise, and avoid to uselessly run
autoconf.
* tests/distcom3.test: Ensure verbose printing of captured stdout
and stderr.  Make grepping of captured stderr stricter.  Also,
add trailing `:' command.
* tests/distcom4.test: Declare the target `test' in the generated
Makefile.am as `.PHONY'.  Display content of more files, to ease
debugging.  Add trailing `:' command.
* tests/distcom5.test: Likewise.  Also, factor out common sed
script in subroutine `extract_distcommon'.
* tests/distcom7.test: Prefer cat + here-doc over echo to write
test Makefile.am files.  Add a trailing `:' command.
* tests/distname.test: Prefer `gzip -d' over `gunzip'.  Move the
call to `set -e' earlier.  Be stricter and more verbose in the
checking of the generated tarball.
(configure.in): Use the stub provided by ./defs, instead of
writing it from scratch.  Avoid obsoleted constructs.  Remove
useless call to `AM_PROG_CC_C_O'.
* tests/distdir.test: Various minor improvements/normalizations.
* tests/distlinks.test: Likewise.
ChangeLog
tests/distcleancheck.test
tests/distcom2.test
tests/distcom3.test
tests/distcom4.test
tests/distcom5.test
tests/distcom6.test
tests/distcom7.test
tests/distdir.test
tests/distlinks.test
tests/distname.test