1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00
Files
gnulib/tests/test-zprintf-posix.sh
Bruno Haible 5c24277e48 zprintf-posix: Add tests.
* tests/test-zprintf-posix.c: New file, based on
tests/test-printf-posix.c.
* tests/test-zprintf-posix.sh: New file, based on
tests/test-printf-posix.sh.
* modules/zprintf-posix-tests: New file.
2024-06-30 22:47:58 +02:00

17 lines
399 B
Bash
Executable File

#!/bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
tmpfiles="$tmpfiles t-zprintf-posix.tmp t-zprintf-posix.out"
${CHECKER} ./test-zprintf-posix${EXEEXT} > t-zprintf-posix.tmp || exit 1
LC_ALL=C tr -d '\r' < t-zprintf-posix.tmp > t-zprintf-posix.out || exit 1
: "${DIFF=diff}"
${DIFF} "${srcdir}/test-printf-posix.output" t-zprintf-posix.out
result=$?
rm -fr $tmpfiles
exit $result