#! /bin/bash cat <<--- This test checks that a local header can be included with "awesomeindex_header ... local". -- use pup cat > "${TESTDIR}/header" <yes EOF nginx_start "awesomeindex_header \"${TESTDIR}/header\" local;" T=$(fetch / | pup -p body 'div#customheader' text{}) [[ $T == yes ]] || fail 'Custom header missing' nginx_is_running || fail 'Nginx died'