diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-08 22:36:30 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-08 22:36:30 -0700 |
commit | 4ba60f356501b01ca7f5935308f7d05418fc45e2 (patch) | |
tree | 34376386164e2bb9075eae959a48924bc53a1571 /test_layers | |
parent | 3968855b2a2994a1ce52f610c17b82ca596aa8e9 (diff) | |
download | mu-4ba60f356501b01ca7f5935308f7d05418fc45e2.tar.gz |
2944
2943 almost worked; just a couple of tweaks: a) Divide up the work a little more finely since we still timed out on some jobs. b) Use clang and valgrind when running apps as well.
Diffstat (limited to 'test_layers')
-rwxr-xr-x | test_layers | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test_layers b/test_layers index 81598241..88382a6e 100755 --- a/test_layers +++ b/test_layers @@ -1,4 +1,6 @@ #!/bin/bash +# Repeatedly stop building until successive layers, and run all tests built. +# # Test all layers: # test_layers # Test layers after x: @@ -11,15 +13,18 @@ for f in [0-9]* do if [[ $f < $1 ]]; then continue; fi - if [[ $2 && $f > $2 ]]; then continue; fi + if [[ $2 && $f > $2 ]]; then exit 0; fi echo "=== $f" ./build_and_test_until $f || exit 1 done +CXX=clang++ CFLAGS="-g -O3 -fsanitize=undefined -Wno-tautological-constant-out-of-range-compare" make +VALGRIND="valgrind --leak-check=yes --num-callers=40 -q --error-exitcode=1" + if [[ ! $1 || $1 == chessboard ]] then echo "=== chessboard" - ./mu test chessboard.mu || exit 1 + $VALGRIND ./mu_bin test chessboard.mu || exit 1 fi if [[ ! $1 || $1 == edit ]] @@ -27,6 +32,6 @@ then for f in edit/[0-9]* do echo "=== edit: until $f" - ./mu test `echo edit/[0-9]* |perl -pwe "s,$f.*,$f,"` || exit 1 + $VALGRIND ./mu_bin test `echo edit/[0-9]* |perl -pwe "s,$f.*,$f,"` || exit 1 done fi |