Rename configure.test to test-configure

Otherwise it is ignored with the other *.test generated files
tingping/wmclass
Alexander Larsson 2016-05-02 17:18:00 +02:00
parent 36d0a2fe2a
commit 4d21107f1c
4 changed files with 25 additions and 3 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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

View File

@ -27,7 +27,7 @@
"sources": [
{
"type": "file",
"path": "configure.test",
"path": "test-configure",
"dest-filename": "configure",
"sha256": "ce0a7014057cc45ac6cfa4b84fe848d46b1225f4ce03f1b52d5ab73521816cbf"
},