2 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Check parallel-tests features:
23 cat >> configure.ac << 'END'
27 cat > Makefile.am << 'END'
28 TEST_SUITE_LOG = mylog.log
29 TESTS = foo.test bar.test baz.test
36 cat > foo.test <<'END'
42 cat > bar.test <<'END'
47 cat > baz.test <<'END'
52 chmod a+x foo.test bar.test baz.test
59 $MAKE check >stdout && { cat stdout; Exit 1; }
61 count_test_results total=3 pass=1 fail=1 skip=0 xfail=0 xpass=0 error=1
63 $MAKE recheck >stdout && { cat stdout; Exit 1; }
65 count_test_results total=2 pass=0 fail=1 skip=0 xfail=0 xpass=0 error=1
66 grep 'foo\.test' stdout && Exit 1
67 grep '^ERROR: bar\.test$' stdout
68 grep '^FAIL: baz\.test$' stdout
70 # Ensure that recheck builds check_SCRIPTS, and that
71 # recheck reruns nothing if check has not been run.