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