18 lines
384 B
Bash
18 lines
384 B
Bash
#! /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 "/footer" local;'
|
|
|
|
T=$(fetch / | pup -p body 'div#customfooter' text{})
|
|
[[ $T == yes ]] || fail 'Custom header missing'
|
|
|
|
nginx_is_running || fail 'Nginx died'
|