forked from Mirrors/flatpak-builder
Rename configure.test to test-configure
Otherwise it is ignored with the other *.test generated filestingping/wmclass
parent
36d0a2fe2a
commit
4d21107f1c
|
@ -50,7 +50,7 @@ tests/test-basic.sh: tests/package_version.txt
|
|||
|
||||
installed_test_SCRIPTS += \
|
||||
buildutil/tap-driver.sh \
|
||||
tests/configure.test \
|
||||
tests/test-configure \
|
||||
tests/package_version.txt \
|
||||
tests/make-test-app.sh \
|
||||
tests/make-test-runtime.sh \
|
||||
|
|
|
@ -32,7 +32,7 @@ install_sdk_repo
|
|||
REPO=`pwd`/repo
|
||||
cd $TEST_DATA_DIR/
|
||||
|
||||
cp -a $(dirname $0)/configure.test .
|
||||
cp -a $(dirname $0)/test-configure .
|
||||
echo "version1" > app-data
|
||||
xdg-app-builder --repo=$REPO --force-clean appdir $(dirname $0)/test.json > /dev/null
|
||||
|
||||
|
|
|
@ -0,0 +1,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
|
|
@ -27,7 +27,7 @@
|
|||
"sources": [
|
||||
{
|
||||
"type": "file",
|
||||
"path": "configure.test",
|
||||
"path": "test-configure",
|
||||
"dest-filename": "configure",
|
||||
"sha256": "ce0a7014057cc45ac6cfa4b84fe848d46b1225f4ce03f1b52d5ab73521816cbf"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue