summaryrefslogtreecommitdiff
path: root/tests/prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/prepare.sh')
-rwxr-xr-xtests/prepare.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/prepare.sh b/tests/prepare.sh
index 451151a6..e7a68a92 100755
--- a/tests/prepare.sh
+++ b/tests/prepare.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-tmpdir=/tmp/lighttpd
-
if test x$srcdir = x; then
srcdir=.
fi
+tmpdir=$srcdir/tmp/lighttpd
+
# create test-framework
rm -rf $tmpdir
mkdir -p $tmpdir/servers/www.example.org/pages/
@@ -24,6 +24,9 @@ cp $srcdir/docroot/www/*.html \
$srcdir/docroot/www/*.pl \
$srcdir/docroot/www/*.fcgi \
$srcdir/docroot/www/*.shtml \
+ $srcdir/docroot/www/*.jpg \
+ $srcdir/docroot/www/*.JPG \
+ $srcdir/docroot/www/a \
$srcdir/docroot/www/*.txt $tmpdir/servers/www.example.org/pages/
cp $srcdir/docroot/www/go/*.php $tmpdir/servers/www.example.org/pages/go/
cp $srcdir/docroot/www/expire/*.txt $tmpdir/servers/www.example.org/pages/expire/
@@ -33,7 +36,7 @@ cp $srcdir/docroot/123/*.txt \
$srcdir/docroot/123/*.php \
$srcdir/docroot/123/*.bla $tmpdir/servers/123.example.org/pages/
cp $srcdir/lighttpd.user $tmpdir/
-cp $srcdir/var-include-sub.conf /tmp/
+cp $srcdir/var-include-sub.conf $srcdir/tmp
printf "%-40s" "preparing infrastructure"