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

                                                                            

                                               
 

      
               
                             
                 

               
                           
    






                                                                                                            
#!/bin/bash
# Repeatedly stop building until successive layers, and run all tests built.
#
# Assumes .subx files all come after .cc files.

set -e

cd `dirname $0`
# add C++ files one at a time
for f in [0-9]*cc
do
  echo "=== $f"
  ./build_and_test_until $f
done

# add SubX files one at a time
for f in [0-9]*.subx
do
  echo "=== $f"
  CFLAGS=-g ./subx translate $(../enumerate/enumerate --until $f |grep '\.subx$') -o foo  &&  ./subx run foo
done