@@ -1,7 +1,7 @@
#!/bin/sh
-SRCDIR=${srcdir-`pwd`}
-BUILDDIR=${top_builddir-`pwd`}
+SRCDIR="${srcdir-`pwd`}"
+BUILDDIR="${top_builddir-`pwd`}"
test="TEST"
@@ -9,11 +9,11 @@ if [ -n "$1" ] ; then
test="$1"
fi
-test -d ${BUILDDIR}/test || mkdir ${BUILDDIR}/test/
+test -d "${BUILDDIR}/test" || mkdir "${BUILDDIR}/test/"
-${BUILDDIR}/intel-gen4asm -o ${BUILDDIR}/${test}.out $SRCDIR/${test}.g4a
-if cmp ${BUILDDIR}/${test}.out ${SRCDIR}/${test}.expected 2> /dev/null; then : ; else
+"${BUILDDIR}/intel-gen4asm" -o "${BUILDDIR}/${test}.out" "$SRCDIR/${test}.g4a"
+if cmp "${BUILDDIR}/${test}.out" "${SRCDIR}/${test}.expected" 2> /dev/null; then : ; else
echo "Output comparison for ${test}"
- diff -u ${SRCDIR}/${test}.expected ${test}.out
+ diff -u "${SRCDIR}/${test}.expected" "${test}.out"
exit 1;
fi
If the directories contain spaces, run-test.sh fails. Signed-off-by: Petri Latvala <petri.latvala@intel.com> --- assembler/test/run-test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)