summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-01-16 11:59:46 +0200
committerPetri Latvala <petri.latvala@intel.com>2018-01-16 12:31:29 +0200
commitc8355d0c783ee419ba53f46d07024533d3ce66b8 (patch)
tree8a7792ac6e06d261275ce6ecfe6fb80e493283b0
parent9f72eb171b4576fb5384c2daf0ea4d238a6624dd (diff)
meson: Add quotes in assembler/test/run-test.sh
If the directories contain spaces, run-test.sh fails. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
-rw-r--r--assembler/test/run-test.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/assembler/test/run-test.sh b/assembler/test/run-test.sh
index b06e1044..f5e1a8fb 100644
--- a/assembler/test/run-test.sh
+++ b/assembler/test/run-test.sh
@@ -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