Mercurial > gnulib
annotate tests/test-pipe-filter-ii2.sh @ 40221:8c1a17df67e0
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 11:32:11 +0100 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
11759
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 #! /bin/sh |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 # pipe-filter test driver. |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 # |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
5 # Copyright (C) 2009-2019 Free Software Foundation, Inc. |
11759
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 # Written by Paolo Bonzini <bonzini@gnu.org>, 2009. |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 # |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 # This program is free software: you can redistribute it and/or modify |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 # it under the terms of the GNU General Public License as published by |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 # the Free Software Foundation; either version 3 of the License, or |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 # (at your option) any later version. |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 # |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 # GNU General Public License for more details. |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 # |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 # You should have received a copy of the GNU General Public License |
19190 | 19 # along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
11759
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40057
diff
changeset
|
21 ${CHECKER} ./test-pipe-filter-ii2-main${EXEEXT} ./test-pipe-filter-ii2-child${EXEEXT} | { |
11759
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 set -e |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 read a && test "$a" = "Test 1 passed." |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 read a && test "$a" = "Test 2 passed." |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 i=1 |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 while test $i -le 100; do |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 read a && test "$a" = "abcdefghijklmnopqrstuvwxyz$i" |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 i=`expr $i + 1` |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 done |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 read a && test "$a" = "Test 3 passed." |
a43946bf11a9
Tests for module 'pipe-filter-ii'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 } |