/usr/lib/flatpak/installed-tests/flatpak-builder/test-configure is in flatpak-builder-tests 0.10.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/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
|