summaryrefslogtreecommitdiff
path: root/tests/prepare.sh
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-29 12:08:00 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-29 12:08:00 +0000
commit15b010907193c23e7d89918e74b90ff36e21bab9 (patch)
tree0e4a1018cb091b600a5cde3bbadb8390f0534f82 /tests/prepare.sh
parent0f30ffa1450b6b062e9b50f3d7d59a4d0fe1fa6b (diff)
downloadlighttpd-git-15b010907193c23e7d89918e74b90ff36e21bab9.tar.gz
run tests in build root (merged #228)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@640 152afb58-edef-0310-8abb-c4023f1b3aa9
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"