diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-05-23 14:26:58 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-05-23 14:26:58 +0200 |
commit | ae610ad30c7ae239b046c2ca023c74db5b4dc6c7 (patch) | |
tree | 66468db56cc4101eab595f31048a90704a589553 /tests/check2.test | |
parent | deb4f3b66a082684da7cca051ce32b80abced2ec (diff) | |
download | automake-ae610ad30c7ae239b046c2ca023c74db5b4dc6c7.tar.gz |
tests: tweak and improve tests on "Simple Tests" driver
* tests/check.test: Make grepping of generated Makefile.in
slightly stricter. Add trailing `:' command.
* tests/check2.test: Ensure verbose printing of captured make
output. Make grepping of generated Makefile.in and of make
output stricter. Add trailing `:' command.
* tests/check3.test: Likewise. Also, fix minor error in a
comment.
* tests/check4.test: Stricter grepping of make output. Use
`using_gmake' subroutine instead of copy&paste from defs.in
to determine whether $MAKE is GNU make. Add a trailing `:'
command.
* tests/check6.test: Add trailing `:' command.
* tests/check10.test: Prefer redirection `>' over `>>' when
creating new files. Ensure verbose printing of captured make
output.
* tests/check11.test: Likewise.
* tests/check7.test: Likewise. Make grepping of make output
stricter. Prefer "make distcheck" over a simple "make check"
in a VPATH build. Add trailing `:' command.
(a.c): Format following GNU coding standards.
(Makefile.am): Explicitly declare target `print-xfail-tests'
as PHONY. Distribute $(check_SCRIPTS), for distcheck.
* tests/parallel-tests.test: Prefer redirection `>' over `>>'
when creating new files.
* tests/parallel-tests2.test: Likewise.
* tests/parallel-tests9.test: Likewise.
* tests/parallel-tests8.test: Likewise. Make grepping of
automake stderr stricter.
* tests/check8.test: Likewise. Make formatting of created
*.c files more consistent with GNU Coding Standards.
* tests/check-subst-prog.test (configure.in): Break overly
long lines.
(pass-prog.c, xfail-prog.c): Format them more consistently
with GNU Coding Standards.
* tests/parallel-tests3.test: Use a shorter and clearer skip
message. Use the `unindent' subroutine to improve readability
of indented loop bodies. Simplify the hack used to please
maintainer-check.
* tests/parallel-tests5.test: Make formatting of created *.c
files more consistent with GNU Coding Standards. Use the
`unindent' subroutine to improve readability of indented loop
bodies.
* tests/parallel-tests10.test: Add blank line, for clarity.
Prefer trailing `:' over trailing `Exit 0', for consistency
with other tests.
Diffstat (limited to 'tests/check2.test')
-rwxr-xr-x | tests/check2.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/check2.test b/tests/check2.test index 9b8bfb1b5..d21551890 100755 --- a/tests/check2.test +++ b/tests/check2.test @@ -47,16 +47,20 @@ $ACLOCAL $AUTOCONF $AUTOMAKE ./configure -$MAKE check >stdout + +$MAKE check >stdout || { cat stdout; Exit 1; } cat stdout -grep 'PASS: subrun.sh' stdout +grep '^PASS: subrun\.sh *$' stdout +grep 'PASS.*echo\.sh' stdout && Exit 1 # check should depend directly on check-am (similar tests are # in check.test and check3.test). -grep 'check: check-recursive' Makefile.in -grep 'check: check-am' dir/Makefile.in +$EGREP '^check:.* check-recursive( |$)' Makefile.in +$EGREP '^check:.* check-am( |$)' dir/Makefile.in # Make sure subrun.sh is still on its line as above. This means Automake # hasn't rewritten the TESTS line unnecessarily (we can tell, because all # Automake variables are reformatted by VAR_PRETTY). -grep ' subrun.sh' Makefile.in +grep '^ subrun\.sh$' Makefile.in + +: |