diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-03-08 14:05:56 +0100 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-03-14 10:48:45 +0100 |
commit | 099f454e9cb59c654fd3c5805af377290b9333c2 (patch) | |
tree | a8c750e75c177f0b2b9a5cb364d7cdf0875edec8 /tests/parallel-tests2.test | |
parent | c33683f0f738bb418d1d8548075065fe943ffb71 (diff) | |
download | automake-099f454e9cb59c654fd3c5805af377290b9333c2.tar.gz |
New tests for `parallel-tests'.
* tests/parallel-tests.test: New file, to expose a bunch of
features of `parallel-tests': VERBOSE, clean, TEST_SUITE_LOG,
test dependencies, DISABLE_HARD_ERRORS.
* tests/parallel-tests2.test: New file, test check-html.
* tests/parallel-tests3.test: New file, test concurrency.
* tests/parallel-tests4.test: New file, test suffix rules.
* tests/parallel-tests5.test: New file, demonstrate compile/test
concurrency.
* tests/defs.in: Add a `required' check for rst2html.
* tests/Makefile.am: Update.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/parallel-tests2.test')
-rwxr-xr-x | tests/parallel-tests2.test | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/parallel-tests2.test b/tests/parallel-tests2.test new file mode 100755 index 000000000..17a510840 --- /dev/null +++ b/tests/parallel-tests2.test @@ -0,0 +1,59 @@ +#! /bin/sh +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# Check parallel-tests features: +# - check-html + +required=rst2html +. ./defs-p || Exit 1 + +set -e + +cat >> configure.in << 'END' +AC_OUTPUT +END + +cat > Makefile.am << 'END' +TEST_SUITE_LOG = mylog.log +TESTS = foo.test bar.test baz.test +END + +cat >>foo.test <<'END' +#! /bin/sh +echo "this is $0" +exit 0 +END +cat >>bar.test <<'END' +#! /bin/sh +echo "this is $0" +exit 99 +END +cat >>baz.test <<'END' +#! /bin/sh +echo "this is $0" +exit 1 +END +chmod a+x foo.test bar.test baz.test + +$ACLOCAL +$AUTOCONF +$AUTOMAKE -a + +./configure +$MAKE check-html >stdout && { cat stdout; Exit 1; } +cat stdout +test -f mylog.html +: |