summaryrefslogtreecommitdiff
path: root/tests/testanalyze.sh
blob: d62c65a96eb9ca4c76d9c5cea9ce5043dea01efc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

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