regex: updates from neatvi
[neatmail.git] / test.sh
blob7d745627887b75ed5315fa28e7413839c63638e5
1 #!/bin/sh
3 for x in test/??.sh
4 do
5 printf "$x: "
6 cp test/test.mbox /tmp/.neatmail.mbox
7 sh $x /tmp/.neatmail.mbox >/tmp/.neatmail.out
8 if cmp -s ./test/`basename $x .sh`.out /tmp/.neatmail.out; then
9 printf "OK\n"
10 else
11 printf "Failed\n"
12 diff -u ./test/`basename $x .sh`.out /tmp/.neatmail.out
13 exit 1
15 done