summaryrefslogtreecommitdiff
path: root/out_test.sh
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2007-04-22 03:32:46 +0000
committerPeter Johnson <peter@tortall.net>2007-04-22 03:32:46 +0000
commit00473ca98171eb19615109f5a8512993da43a77a (patch)
treeff659c3a00f05562d7210683c8756303c7d02187 /out_test.sh
parent4238a7c5ce3b8853ecd1d9cf50eaa354f1038e7d (diff)
downloadyasm-00473ca98171eb19615109f5a8512993da43a77a.tar.gz
Bite the bullet and convert tabs to spaces. Previously yasm's source has
been using a mix of tabs and 4 spaces to indent; this looks horrible if tab size is ever not 8. While I debated converting to tab-only indentation that would have been a far higher impact to the source. svn path=/trunk/yasm/; revision=1825
Diffstat (limited to 'out_test.sh')
-rwxr-xr-xout_test.sh88
1 files changed, 44 insertions, 44 deletions
diff --git a/out_test.sh b/out_test.sh
index 2f9bb079..a0eb8be4 100755
--- a/out_test.sh
+++ b/out_test.sh
@@ -30,64 +30,64 @@ do
e=${a}.ew
eg=`echo ${asm} | sed 's,.asm$,.errwarn,'`
if test \! -e ${eg}; then
- eg=/dev/null
+ eg=/dev/null
fi
# Run within a subshell to prevent signal messages from displaying.
sh -c "cat ${asm} | ./yasm $4 -o results/${o} - 2>results/${e}" >/dev/null 2>/dev/null
status=$?
if test $status -gt 128; then
- # We should never get a coredump!
- echo $ECHO_N "C$ECHO_C"
+ # We should never get a coredump!
+ echo $ECHO_N "C$ECHO_C"
eval "failed$failedct='C: ${a} crashed!'"
- failedct=`expr $failedct + 1`
+ failedct=`expr $failedct + 1`
elif test $status -gt 0; then
- echo ${asm} | grep err >/dev/null
- if test $? -gt 0; then
- # YASM detected errors but shouldn't have!
- echo $ECHO_N "E$ECHO_C"
+ echo ${asm} | grep err >/dev/null
+ if test $? -gt 0; then
+ # YASM detected errors but shouldn't have!
+ echo $ECHO_N "E$ECHO_C"
eval "failed$failedct='E: ${a} returned an error code!'"
- failedct=`expr $failedct + 1`
- else
- # We got errors, check to see if they match:
- if diff -w ${eg} results/${e} >/dev/null; then
- # Error/warnings match, it passes!
- echo $ECHO_N ".$ECHO_C"
- passedct=`expr $passedct + 1`
- else
- # Error/warnings don't match.
- echo $ECHO_N "W$ECHO_C"
+ failedct=`expr $failedct + 1`
+ else
+ # We got errors, check to see if they match:
+ if diff -w ${eg} results/${e} >/dev/null; then
+ # Error/warnings match, it passes!
+ echo $ECHO_N ".$ECHO_C"
+ passedct=`expr $passedct + 1`
+ else
+ # Error/warnings don't match.
+ echo $ECHO_N "W$ECHO_C"
eval "failed$failedct='W: ${a} did not match errors and warnings!'"
- failedct=`expr $failedct + 1`
- fi
- fi
+ failedct=`expr $failedct + 1`
+ fi
+ fi
else
- echo ${asm} | grep -v err >/dev/null
- if test $? -gt 0; then
- # YASM didn't detect errors but should have!
- echo $ECHO_N "E$ECHO_C"
+ echo ${asm} | grep -v err >/dev/null
+ if test $? -gt 0; then
+ # YASM didn't detect errors but should have!
+ echo $ECHO_N "E$ECHO_C"
eval "failed$failedct='E: ${a} did not return an error code!'"
- failedct=`expr $failedct + 1`
- else
- ./test_hd results/${o} > results/${oh}
- if diff ${og} results/${oh} >/dev/null; then
- if diff -w ${eg} results/${e} >/dev/null; then
- # Both object file and error/warnings match, it passes!
- echo $ECHO_N ".$ECHO_C"
- passedct=`expr $passedct + 1`
- else
- # Error/warnings don't match.
- echo $ECHO_N "W$ECHO_C"
+ failedct=`expr $failedct + 1`
+ else
+ ./test_hd results/${o} > results/${oh}
+ if diff ${og} results/${oh} >/dev/null; then
+ if diff -w ${eg} results/${e} >/dev/null; then
+ # Both object file and error/warnings match, it passes!
+ echo $ECHO_N ".$ECHO_C"
+ passedct=`expr $passedct + 1`
+ else
+ # Error/warnings don't match.
+ echo $ECHO_N "W$ECHO_C"
eval "failed$failedct='W: ${a} did not match errors and warnings!'"
- failedct=`expr $failedct + 1`
- fi
- else
- # Object file doesn't match.
- echo $ECHO_N "O$ECHO_C"
+ failedct=`expr $failedct + 1`
+ fi
+ else
+ # Object file doesn't match.
+ echo $ECHO_N "O$ECHO_C"
eval "failed$failedct='O: ${a} did not match object file!'"
- failedct=`expr $failedct + 1`
- fi
- fi
+ failedct=`expr $failedct + 1`
+ fi
+ fi
fi
done