File: 08-local-footer.test

package info (click to toggle)
libnginx-mod-http-fancyindex 1%3A0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 340 kB
  • sloc: ansic: 1,296; sh: 588; awk: 36; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash
cat <<---
This test checks that a local footer can be included with
"fancyindex_header ... local"
--
use pup

cat > "${TESTDIR}/footer" <<EOF
<div id="customfooter">yes</div>
EOF

nginx_start "fancyindex_footer \"${TESTDIR}/footer\" local;"

T=$(fetch / | pup -p body 'div#customfooter' text{})
[[ $T == yes ]] ||  fail 'Custom header missing'

nginx_is_running || fail 'Nginx died'