about summary refs log blame commit diff stats
path: root/subx/test_layers
blob: fa801c10feb31d81248b7fbffeb554f3e3d97728 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                                            

      
               




                                       
 
           
                                      
  
         
                                  
                                          
                                      
    
#!/bin/bash
# Repeatedly stop building until successive layers, and run all tests built.

set -e

cd `dirname $0`
for f in [0-9]*
do
  echo "=== $f"
  ./build_and_test_until $f  ||  exit 1
done

./clean top
for f in examples/ex*.subx apps/*.subx
do
  echo $f
  target=`echo $f |sed 's/\..*//'`
  CFLAGS=-g ./subx translate $f -o $target
  git diff --quiet $target  ||  exit 1
done