summaryrefslogblamecommitdiff
path: root/tests/testanalyze.sh
blob: 8b1add2571fdd25d4fcd86b95deafe65d7ed2031 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                    
#!/bin/sh

for a in source/*.scade; do
  if ../analyze --test $a > /tmp/analyze_out.txt;
  then
    if diff -B /tmp/analyze_out.txt result/`basename $a .scade`.out >/dev/null; then
      echo "OK    $a"
    else
      echo "FAIL  $a"
    fi
  else
    echo "TODO  $a"
  fi
done