You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
422 B
12 lines
422 B
#! /bin/bash
|
|
cat <<---
|
|
This test fetches the root directory served by Nginx, which has no index file,
|
|
and checks that the output contains something that resembles the output from
|
|
the fancyindex module.
|
|
--
|
|
nginx_start
|
|
content=$(fetch --with-headers)
|
|
grep 'Index of /' <<< "${content}" # It is an index
|
|
grep '\<table\>' <<< "${content}" # It contains a table
|
|
grep '^ Content-Type:[[:space:]]*text/html' <<< "${content}"
|