Consolidate conditionals in mp sin/cos functions
[glibc.git] / conform / run-conformtest.sh
blobc82fbcb5a45823e7d0a212a6e8a39904f24aa597
1 #! /bin/bash
3 objpfx="$1"
4 perl="$2"
5 cc="$3"
6 includes="$4"
8 scratch=${objpfx}scratch
9 mkdir -p "$scratch"
11 standards=("ISO" "ISO99" "ISO11" "POSIX" "XPG3" "XPG4" "UNIX98"
12 "XOPEN2K" "XOPEN2K8" "POSIX2008")
14 exitval=0
15 > ${objpfx}run-conformtest.out
16 for s in ${standards[*]}; do
17 echo -n $s...
18 e=0
19 if ! $perl conformtest.pl --tmpdir="$scratch" --cc="$cc" --flags="$includes" --standard=$s > ${objpfx}conform-$s.out; then
20 e=1
22 printf "\n%s\n" $s >> ${objpfx}run-conformtest.out
23 tail -n 4 ${objpfx}conform-$s.out >> ${objpfx}run-conformtest.out
24 echo
25 if [ $e -ne 0 ]; then
26 tail -n 3 ${objpfx}conform-$s.out
27 exitval=1
29 done
31 exit $exitval