summary refs log tree commit diff
path: root/src/tools/regress.sh
blob: 4106b006aff92b72ea950ee7e92ba69f576cefec (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