#!/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