]> git.ipfire.org Git - thirdparty/glibc.git/blob - conform/run-conformtest.sh
First steps to get conformtest fully working
[thirdparty/glibc.git] / conform / run-conformtest.sh
1 #! /bin/sh
2
3 objpfx="$1"
4 perl="$2"
5 cc="$3"
6 includes="$4"
7
8 standards=("ISO" "ISO99" "ISO11" "POSIX" "XPG3" "XPG4" "UNIX98"
9 "XOPEN2K" "XOPEN2K8" "POSIX2008")
10 standards=("POSIX" "XPG3" "XPG4" "UNIX98"
11 "XOPEN2K" "XOPEN2K8" "POSIX2008")
12
13 exitval=0
14 > ${objpfx}run-conformtest.out
15 for s in ${standards[*]}; do
16 echo -n $s...
17 e=0
18 if ! $perl conformtest.pl --cc="$cc" --flags="$includes" --standard=$s > ${objpfx}conform-$s.out; then
19 e=1
20 fi
21 printf "\n%s\n" $s >> ${objpfx}run-conformtest.out
22 tail -n 4 ${objpfx}conform-$s.out >> ${objpfx}run-conformtest.out
23 echo
24 if [ $e -ne 0 ]; then
25 tail -n 3 ${objpfx}conform-$s.out
26 exitval=1
27 fi
28 done
29
30 exit $exitval