check-all.sh

changeset 988
15b3ca7ee33f
parent 987
53e22f112b11
equal deleted inserted replaced
987:53e22f112b11 988:15b3ca7ee33f
10 else 10 else
11 echo "ok." 11 echo "ok."
12 fi 12 fi
13 } 13 }
14 14
15 function perform_check_cxx
16 {
17 # we cannot mute the warnings, so throw every everything
18 if ! make check-cxx > /dev/null 2> /dev/null ; then
19 echo "fail."
20 else
21 echo "ok."
22 fi
23 }
24
15 for cc in clang gcc; do 25 for cc in clang gcc; do
16 CC=$cc ./configure --debug > /dev/null 26 CC=$cc ./configure --debug > /dev/null
17 printf "Check $cc... " 27 printf "Check $cc... "
18 perform_check 28 perform_check
29 printf "Check $cc (c++)... "
30 perform_check_cxx
19 done 31 done
20 32
21 printf "Check w/o szmul builtin... " 33 printf "Check w/o szmul builtin... "
22 ./configure --debug --disable-szmul-builtin > /dev/null 34 ./configure --debug --disable-szmul-builtin > /dev/null
23 perform_check 35 perform_check
36 printf "Check w/o szmul builtin (c++)... "
37 perform_check_cxx
24 38
25 # clean build files and restore config 39 # clean build files and restore config
26 make clean > /dev/null 40 make clean > /dev/null
27 mv config.mk.bak config.mk 41 mv config.mk.bak config.mk

mercurial