| 1 #!/bin/sh |
1 #!/bin/sh |
| 2 |
2 |
| 3 # backup config |
3 # backup config |
| 4 cp config.mk config.mk.bak |
4 cp config.mk config.mk.bak |
| 5 |
5 |
| 6 function perform_check |
6 perform_check() |
| 7 { |
7 { |
| 8 if ! make clean check > /dev/null ; then |
8 make clean > /dev/null |
| |
9 if ! make check -j`nproc` > /dev/null ; then |
| 9 echo "fail." |
10 echo "fail." |
| 10 else |
11 else |
| 11 echo "ok." |
12 echo "ok." |
| 12 fi |
13 fi |
| 13 } |
14 } |
| 14 |
15 |
| 15 function perform_check_cxx |
16 perform_check_cxx() |
| 16 { |
17 { |
| 17 # we cannot mute the warnings, so throw every everything |
18 make clean > /dev/null |
| 18 if ! make clean check-cxx > /dev/null 2> /dev/null ; then |
19 # we cannot mute the warnings, so throw away everything |
| |
20 if ! make check-cxx -j`nproc` > /dev/null 2> /dev/null ; then |
| 19 echo "fail." |
21 echo "fail." |
| 20 else |
22 else |
| 21 echo "ok." |
23 echo "ok." |
| 22 fi |
24 fi |
| 23 } |
25 } |