ngx-fancyindex/t/08-local-footer.test

18 lines
384 B
Plaintext
Raw Normal View History

#! /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'