blob: b16f4fcf14727db171325a5398d2db5a6e2ef0aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
function test {
diff <(timeout 20s $1 || "false") <(echo $2)
}
for file in `ls -1 $1` ; do
if [ -e "$1/$file/testgen.sh" ] ; then
"$1/$file/testgen.sh" 50 | while read line ; do
split=($line)
echo ./tmachines $1/$file/$file.tm $line
test "./tmachines --quiet $1/$file/$file.tm ${split[0]}" ${split[1]}
done
fi
done
|