Files
flatpak/tests/test-configure
Simon McVittie aa91b28a74 test-configure: use correct quoting
CFLAGS, FOO, BAR may contain spaces.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 18:05:41 +02:00

23 lines
449 B
Bash
Executable File

#!/bin/sh
if [ x$2 != 'x--some-arg' ] ; then
exit 2
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
install:
echo Installing
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
cp -a app-data /app/share/
EOF