summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-05-17 11:26:43 +0100
committerAlexander Larsson <alexl@redhat.com>2016-05-17 18:05:41 +0200
commitaa91b28a746a5c5f509b1dd455afcb96a765a8eb (patch)
tree2f3db41749104842caff05e7b593488aed06c89c
parentd4738cca16e4566d136d62cd80207427682269b9 (diff)
downloadxdg-app-aa91b28a746a5c5f509b1dd455afcb96a765a8eb.tar.gz
test-configure: use correct quoting
CFLAGS, FOO, BAR may contain spaces. Signed-off-by: Simon McVittie <smcv@debian.org>
-rwxr-xr-xtests/test-configure10
-rw-r--r--tests/test.json2
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-configure b/tests/test-configure
index 3f3e85a..975b6ad 100755
--- a/tests/test-configure
+++ b/tests/test-configure
@@ -7,14 +7,14 @@ fi
cat <<EOF > Makefile
all:
echo Building
- if [ x\$(CFLAGS) != "x-O2 -g" ]; then exit 1; fi
- if [ x\$(FOO) != xbar ]; then exit 1; fi
- if [ x\$(BAR) != x2 ]; then exit 1; fi
+ if [ "x\$(CFLAGS)" != "x-O2 -g" ]; then exit 1; fi
+ if [ "x\$(FOO)" != xbar ]; then exit 1; fi
+ if [ "x\$(BAR)" != x2 ]; then exit 1; fi
install:
echo Installing
- if [ x\$(FOO) != xbar ]; then exit 1; fi
- if [ x\$(BAR) != x3 ]; then exit 1; fi
+ if [ "x\$(FOO)" != xbar ]; then exit 1; fi
+ if [ "x\$(BAR)" != x3 ]; then exit 1; fi
mkdir -p /app/bin
cp -a hello2.sh /app/bin/
mkdir -p /app/share
diff --git a/tests/test.json b/tests/test.json
index a0d715a..a25756a 100644
--- a/tests/test.json
+++ b/tests/test.json
@@ -29,7 +29,7 @@
"type": "file",
"path": "test-configure",
"dest-filename": "configure",
- "sha256": "ce0a7014057cc45ac6cfa4b84fe848d46b1225f4ce03f1b52d5ab73521816cbf"
+ "sha256": "675a1ac2feec4d4f54e581b4b01bc3cfd2c1cf31aa5963574d31228c8a11b7e7"
},
{
"type": "file",