5 if test "x${srcdir}" = "x"; then
9 if test "x${top_builddir}" = "x"; then
13 tmpdir
="${top_builddir}/tests/tmp/lighttpd"
15 # create test-framework
17 mkdir
-p "${tmpdir}/servers/www.example.org/pages/"
18 mkdir
-p "${tmpdir}/servers/www.example.org/pages/dummydir/"
19 mkdir
-p "${tmpdir}/servers/www.example.org/pages/~test รค_/"
20 mkdir
-p "${tmpdir}/servers/www.example.org/pages/go/"
21 mkdir
-p "${tmpdir}/servers/www.example.org/pages/expire/"
22 mkdir
-p "${tmpdir}/servers/www.example.org/pages/indexfile/"
23 mkdir
-p "${tmpdir}/servers/123.example.org/pages/"
24 mkdir
-p "${tmpdir}/servers/a.example.org/pages/a/"
25 mkdir
-p "${tmpdir}/servers/b.example.org/pages/b/"
26 mkdir
-p "${tmpdir}/logs/"
27 mkdir
-p "${tmpdir}/cache/"
28 mkdir
-p "${tmpdir}/cache/compress/"
30 # copy everything into the right places
31 cp "${srcdir}/docroot/www/"*.html \
32 "${srcdir}/docroot/www/"*.php \
33 "${srcdir}/docroot/www/"*.pl \
34 "${srcdir}/docroot/www/"*.fcgi \
35 "${srcdir}/docroot/www/"*.shtml \
36 "${srcdir}/docroot/www/"*.txt \
37 "${tmpdir}/servers/www.example.org/pages/"
38 cp "${srcdir}/docroot/www/go/"*.php
"${tmpdir}/servers/www.example.org/pages/go/"
39 cp "${srcdir}/docroot/www/expire/"*.txt
"${tmpdir}/servers/www.example.org/pages/expire/"
40 cp "${srcdir}/docroot/www/indexfile/"*.php
"${tmpdir}/servers/www.example.org/pages/indexfile/"
41 cp "${srcdir}/docroot/123/"*.txt \
42 "${srcdir}/docroot/123/"*.html \
43 "${srcdir}/docroot/123/"*.php \
44 "${srcdir}/docroot/123/"*.bla \
45 "${tmpdir}/servers/123.example.org/pages/"
46 cp "${srcdir}/lighttpd.user" "${tmpdir}/"
47 cp "${srcdir}/lighttpd.htpasswd" "${tmpdir}/"
48 cp "${srcdir}/var-include-sub.conf" "${tmpdir}/../"
49 touch "${tmpdir}/servers/www.example.org/pages/image.jpg" \
50 "${tmpdir}/servers/www.example.org/pages/image.JPG" \
51 "${tmpdir}/servers/www.example.org/pages/Foo.txt" \
52 "${tmpdir}/servers/www.example.org/pages/a" \
53 "${tmpdir}/servers/www.example.org/pages/index.html~" \
54 "${tmpdir}/servers/a.example.org/pages/a/a.html" \
55 "${tmpdir}/servers/b.example.org/pages/b/b.html"
56 echo "12345" > "${tmpdir}/servers/www.example.org/pages/range.pdf"
58 printf "%-40s" "preparing infrastructure"