summaryrefslogtreecommitdiff
path: root/impl/test/run
blob: d2389620862dd7608e9ac9cf3786b0b7dca30761 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

NUM=1

while [ -f "$NUM.eqns" ]
do
  OUTPUT=$($1 "$NUM.eqns" smart smart)
  DIFF=$(echo "$OUTPUT" | diff - "$NUM.soln")
  if [ ! -z "$DIFF" ]; then
    echo "=================="
    echo "Test #$NUM failed:"
    echo "$OUTPUT" | sdiff - "$NUM.soln"
    echo
  fi
  NUM=$(($NUM + 1))
done