Commit 4a1885dc authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix the comparison of produced and expected tests outputs.

	* tests/nolimips-check: Look for reference outputs in the source
	directory, not the build directory.
	Use the unified diff format.
parent 990adfef
2012-05-22 Roland Levillain <roland@lrde.epita.fr>
Fix the comparison of produced and expected tests outputs.
* tests/nolimips-check: Look for reference outputs in the source
directory, not the build directory.
Use the unified diff format.
2012-05-22 Roland Levillain <roland@lrde.epita.fr>
Get rid of mutable references, rejected by g++ since version 4.6.
......
......@@ -24,7 +24,7 @@ SRCDIR=$top_srcdir/tests/$MODULE
for STDASM in $SRCDIR/*.s; do
ASM=`basename $STDASM`
STDREF=$BUILDDIR/`echo $ASM | sed 's/\.s$/\.ref/g'`
STDREF=$SRCDIR/`echo $ASM | sed 's/\.s$/\.ref/g'`
STDOUT=$BUILDDIR/`echo $ASM | sed 's/\.s$/\.out/g'`
STDIN=$SRCDIR/`echo $ASM | sed 's/\.s$/\.in/g'`
if test ! -f $STDIN; then
......@@ -39,7 +39,7 @@ for STDASM in $SRCDIR/*.s; do
fail
else
if test -f $STDREF; then
diff $STDOUT $STDREF
diff -u $STDOUT $STDREF
if test $? -ne 0; then
fail
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment