Mercurial > gnulib
annotate tests/test-vdprintf-posix.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 | c1aeb2f8dd65 |
children |
rev | line source |
---|---|
11034
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 #!/bin/sh |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 tmpfiles="" |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 trap 'rm -fr $tmpfiles' 1 2 3 15 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 tmpfiles="$tmpfiles t-vdprintf-posix.tmp t-vdprintf-posix.out" |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
11034
diff
changeset
|
7 ${CHECKER} ./test-vdprintf-posix${EXEEXT} > t-vdprintf-posix.tmp || exit 1 |
11034
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 LC_ALL=C tr -d '\r' < t-vdprintf-posix.tmp > t-vdprintf-posix.out || exit 1 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 : ${DIFF=diff} |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 ${DIFF} "${srcdir}/test-printf-posix.output" t-vdprintf-posix.out |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 result=$? |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 rm -fr $tmpfiles |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 exit $result |