summaryrefslogtreecommitdiff
path: root/tests/test-configure
blob: 975b6ad9b4ef6f06124ed1f3314f1a742f55f3b3 (plain)
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