1#!/bin/sh
2
3tmpfiles=""
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6tmpfiles="$tmpfiles t-xprintf-posix.tmp t-xprintf-posix.out"
7./test-xprintf-posix${EXEEXT} > t-xprintf-posix.tmp || exit 1
8LC_ALL=C tr -d '\r' < t-xprintf-posix.tmp > t-xprintf-posix.out || exit 1
9
10: ${DIFF=diff}
11${DIFF} "${srcdir}/test-printf-posix.output" t-xprintf-posix.out
12test $? = 0 || { rm -fr $tmpfiles; exit 1; }
13
14tmpfiles="$tmpfiles t-xfprintf-posix.tmp t-xfprintf-posix.out"
15./test-xfprintf-posix${EXEEXT} > t-xfprintf-posix.tmp || exit 1
16LC_ALL=C tr -d '\r' < t-xfprintf-posix.tmp > t-xfprintf-posix.out || exit 1
17
18: ${DIFF=diff}
19${DIFF} "${srcdir}/test-printf-posix.output" t-xfprintf-posix.out
20test $? = 0 || { rm -fr $tmpfiles; exit 1; }
21
22rm -fr $tmpfiles
23
24exit 0
25