#!/bin/sh

out=/tmp/$$.out
err=/tmp/$$.err
chk=/tmp/$$.chk
tst=/tmp/$$.tst

trap "rm -f $out $chk $err $tst" EXIT INT QUIT HUP
rm -f test.log

for i
do
	rm -f $chk
	awk '/^name:/            {printf "Running %s ", $2}
	     /^error:$/          {copyon=1; next}
	     /^output:$/         {next}
	     /^\*\//             {copyon=0; next}
	     copyon==1           {print > "'$chk'"}' $i

	../cc1 -I. -w $i > $out 2>$err
	echo $i >> test.log
	cat $err $out > $tst
	if diff -c $chk $tst >> test.log
	then
		echo [OK]
	else
		echo [FAILED]
	fi
done

#!/bin/sh

out=/tmp/$$.out
err=/tmp/$$.err
chk=/tmp/$$.chk
tst=/tmp/$$.tst

trap "rm -f $out $chk $err $tst" EXIT INT QUIT HUP
rm -f test.log

for i
do
	rm -f $chk
	awk '/^name:/            {printf "Running %s ", $2}
	     /^error:$/          {copyon=1; next}
	     /^TODO/             {printf "[DISABLED]"}
	     /^output:$/         {next}
	     /^\*\//             {copyon=0; next}
	     copyon==1           {print > "'$chk'"}' $i

	../cc1 -I. -w $i > $out 2>$err
	echo $i >> test.log
	cat $err $out > $tst
	if diff -c $chk $tst >> test.log
	then
		echo [OK]
	else
		echo [FAILED]
	fi
done

Mark as disabled tests known to be wrong
Mark as disabled tests known to be wrong

There are some tests that are knows are not paased, and they are kept
in order to know that we have a bug, but it makes harder to see if
there is some regression in some moment.
