summaryrefslogtreecommitdiff
path: root/tests/test-configure
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-05-02 17:18:00 +0200
committerAlexander Larsson <alexl@redhat.com>2016-05-02 17:18:00 +0200
commit4d21107f1cca8986b73c61bbffc4c7caa08cccaa (patch)
tree3669ab4a79a0212e23eb2f1e25455973a3320353 /tests/test-configure
parent36d0a2fe2aa59b892553d97e9fecdb9d3a9a69c7 (diff)
downloadxdg-app-4d21107f1cca8986b73c61bbffc4c7caa08cccaa.tar.gz
Rename configure.test to test-configure
Otherwise it is ignored with the other *.test generated files
Diffstat (limited to 'tests/test-configure')
-rwxr-xr-xtests/test-configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test-configure b/tests/test-configure
new file mode 100755
index 0000000..3f3e85a
--- /dev/null
+++ b/tests/test-configure
@@ -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