Mercurial > gnulib
annotate tests/test-vdprintf-posix.sh @ 40186:8964917f9574
autoupdate
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Mon, 18 Feb 2019 08:02:49 -0800 |
parents | c1aeb2f8dd65 |
children | 8c1a17df67e0 |
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" |
c1aeb2f8dd65
Tests for module 'vdprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 ./test-vdprintf-posix${EXEEXT} > t-vdprintf-posix.tmp || exit 1 |
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 |