File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 6
6
cd $( dirname " ${BASH_SOURCE[0]} " )
7
7
8
8
OK=0
9
+ FAILS=
9
10
finish () {
10
11
rm -fr * .o
11
12
rm -fr * .out
@@ -16,7 +17,7 @@ finish() {
16
17
rm -fr * .c.worker.js
17
18
rm -fr * .c.wasm
18
19
if [[ " $OK " != " 1" ]]; then
19
- echo " FAIL"
20
+ echo " FAIL [ ` echo " $FAILS " | xargs ` ] "
20
21
fi
21
22
}
22
23
trap finish EXIT
@@ -210,17 +211,23 @@ else
210
211
if [[ " $WITHCOV " == " 1" ]]; then
211
212
export LLVM_PROFILE_FILE=" $f .profraw"
212
213
fi
214
+ set +e
213
215
if [[ " $VALGRIND " == " 1" ]]; then
214
216
valgrind --leak-check=yes ./$f .test $@
215
217
elif [[ " $CC " == " emcc" ]]; then
216
218
node ./$f .test $@
217
219
else
218
220
./$f .test $@
219
221
fi
220
-
222
+ if [[ " $? " != " 0" ]]; then
223
+ FAILS=" $FAILS $( echo " $f " | cut -f 1 -d ' .' ) "
224
+ fi
225
+ set -e
221
226
done
222
- OK=1
223
- echo " OK"
227
+ if [[ " $FAILS " == " " ]]; then
228
+ OK=1
229
+ echo " OK"
230
+ fi
224
231
225
232
226
233
if [[ " $COVREGIONS " == " " ]]; then
You can’t perform that action at this time.
0 commit comments