From 4ba60f356501b01ca7f5935308f7d05418fc45e2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 8 May 2016 22:36:30 -0700 Subject: 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. --- test_layers | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test_layers') 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 -- cgit 1.4.1-2-gfad0