#!/bin/bash# Repeatedly stop building until successive layers, and run all tests built.set-e
cd`dirname$0`forfin[0-9]*
doecho"=== $f"./build_and_test_until$f||exit1done
./cleantop
forfinexamples/ex*.subxapps/*.subx
doecho$ftarget=`echo$f|sed's/\..*//'`CFLAGS=-g./subxtranslate$f-o$targetgitdiff--quiet$target||exit1done