Upload Modules
This commit is contained in:
17
ngx_fancyindex/t/08-local-footer.test
Normal file
17
ngx_fancyindex/t/08-local-footer.test
Normal file
@@ -0,0 +1,17 @@
|
||||
#! /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 \"${TESTDIR}/footer\" local;"
|
||||
|
||||
T=$(fetch / | pup -p body 'div#customfooter' text{})
|
||||
[[ $T == yes ]] || fail 'Custom header missing'
|
||||
|
||||
nginx_is_running || fail 'Nginx died'
|
||||
Reference in New Issue
Block a user