Tests: Add test descriptions

pull/55/head
Adrian Perez de Castro 2016-08-18 18:15:37 +03:00
parent 038434dd9f
commit f051caa108
No known key found for this signature in database
GPG Key ID: 91C559DBE4C9123B
3 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,9 @@
#! /bin/bash
cat <<---
This test checks that the built Nginx either has the dynamic fancyindex
module available, or that it's not there (for static builds).
--
readonly nginx_path="${PREFIX}/sbin/nginx"
readonly so_path="${PREFIX}/modules/ngx_http_fancyindex_module.so"

View File

@ -1,3 +1,7 @@
#! /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 a directory index.
--
nginx_start
grep 'Index of' <( fetch )

View File

@ -1,4 +1,9 @@
#! /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