2020-10-24 15:35:35 +00:00
|
|
|
#! /bin/bash
|
|
|
|
cat <<---
|
|
|
|
This test checks that a local header can be included with
|
|
|
|
"fancyindex_header ... local"
|
|
|
|
--
|
|
|
|
use pup
|
|
|
|
|
|
|
|
cat > "${TESTDIR}/header" <<EOF
|
|
|
|
<div id="customheader">yes</div>
|
|
|
|
EOF
|
|
|
|
|
2020-10-26 20:32:21 +00:00
|
|
|
nginx_start "fancyindex_header \"${TESTDIR}/header\" local;"
|
2020-10-24 15:35:35 +00:00
|
|
|
|
|
|
|
T=$(fetch / | pup -p body 'div#customheader' text{})
|
|
|
|
[[ $T == yes ]] || fail 'Custom header missing'
|
|
|
|
|
|
|
|
nginx_is_running || fail 'Nginx died'
|