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










                                              

                                           



                                     
                                 




                                   
                           






                                                                  
#!/bin/bash
# Test all layers:
#   test_layers
# Test layers after x:
#   test_layers x
# Test layers after x and until y (inclusive):
#   test_layers x y
# Test all layers for a specific app:
#   test_layers app

for f in [0-9]*
do
  if [[ $f < $1 ]]; then continue; fi
  if [[ $2 && $f > $2 ]]; then continue; fi
  echo "=== $f"
  ./build_and_test_until $f || exit 1
done

if [[ ! $1 || $1 == chessboard ]]
then
  echo "=== chessboard"
  ./mu test chessboard.mu || exit 1
fi

if [[ ! $1 || $1 == edit ]]
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
  done
fi