summary refs log tree commit diff
path: root/tools/regress.sh
blob: 5aaea35521d535ea4066309d8c56635cc156c2a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

for t in ../test/*
do
	printf "Test $t ... "

	./qbe   $t >/tmp/out.0 2>&1
	./qbe.1 $t >/tmp/out.1 2>&1

	if diff /tmp/out.0 /tmp/out.1 > /dev/null
	then
		echo "OK"
	else
		echo "KO"
		break
	fi
done