about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-08 22:36:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-08 22:36:30 -0700
commit4ba60f356501b01ca7f5935308f7d05418fc45e2 (patch)
tree34376386164e2bb9075eae959a48924bc53a1571
parent3968855b2a2994a1ce52f610c17b82ca596aa8e9 (diff)
downloadmu-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.
-rw-r--r--.travis.yml11
-rwxr-xr-xtest_layers11
2 files changed, 17 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 6e617be0..e44f1f31 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,10 +12,17 @@ addons:
 before_install:
   - CXX=clang++
 
+# test_layers takes a long time; divide up the work into multiple jobs on the
+# matrix so we don't time out on Travis
 matrix:
   include:
-    - env: CXX=clang++ START=000 END=070
-    - env: CXX=clang++ START=070 END=999
+    - env: CXX=clang++ START=000 END=020
+    - env: CXX=clang++ START=020 END=040
+    - env: CXX=clang++ START=040 END=060
+    - env: CXX=clang++ START=060 END=070
+    - env: CXX=clang++ START=070 END=080
+    - env: CXX=clang++ START=080 END=090
+    - env: CXX=clang++ START=090 END=999
     - env: CXX=clang++ START=chessboard
     - env: CXX=clang++ START=edit
 
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
'#n191'>191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370