summaryrefslogtreecommitdiffstats
path: root/test.sh
blob: ad786c79f7f3c987d910cdaa9bd3f6706f2911fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh


for f in test/*.asm; do
	in="$(echo "$f" | cut -d. -f1).in"
	out="$(echo "$f" | cut -d. -f1).out"
	tmp="/tmp/tis-test.out"
	./tis-as "$f" "$in" "$tmp"
	if [ $? -ne 0 ]; then
		echo "$f"
	elif ! diff "$out" "$tmp"; then
		cat "$tmp" | xxd 1>&2
		cat "$out" | xxd 1>&2
		echo "$f"
	fi
done