Tests: Fix typos in descriptions and messages
parent
698e7ce4b9
commit
b9ecd5bcb4
|
@ -1,6 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
We test if the output from using "fancyindex_exact_size off" looks sane
|
This test checks if the output from using "fancyindex_exact_size off"
|
||||||
|
looks sane.
|
||||||
--
|
--
|
||||||
nginx_start 'fancyindex_exact_size off;'
|
nginx_start 'fancyindex_exact_size off;'
|
||||||
content=$(fetch)
|
content=$(fetch)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test fetches the root directory served by Nginx, which has no index
|
This test fetches the root directory served by Nginx, which has no index
|
||||||
file, and checks the output contains a few HTML elements know to exist in
|
file, and checks that the output contains a few HTML elements known to
|
||||||
a directory index.
|
exist in a directory index.
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
nginx_start
|
nginx_start
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test check the output using "fancyindex_hide_parent_dir on"
|
This test checks the output using "fancyindex_hide_parent_dir on".
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
nginx_start 'fancyindex_hide_parent_dir on;'
|
nginx_start 'fancyindex_hide_parent_dir on;'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test check the output using "fancyindex_directories_first on"
|
This test checks the output using "fancyindex_directories_first on".
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ while read -r name ; do
|
||||||
;;
|
;;
|
||||||
*d*)
|
*d*)
|
||||||
echo "dir $name"
|
echo "dir $name"
|
||||||
[[ "$cur_type" = f ]] && fail 'Directories should come before Files'
|
[[ "$cur_type" = f ]] && fail 'Directories should come before files'
|
||||||
cur_type=d
|
cur_type=d
|
||||||
if [[ -z ${previous} ]] ; then
|
if [[ -z ${previous} ]] ; then
|
||||||
previous=${name}
|
previous=${name}
|
||||||
|
@ -34,7 +34,7 @@ while read -r name ; do
|
||||||
;;
|
;;
|
||||||
*f*)
|
*f*)
|
||||||
echo "file $name"
|
echo "file $name"
|
||||||
[[ -z "$cur_type" ]] && fail 'Directories should come before Files'
|
[[ -z "$cur_type" ]] && fail 'Directories should come before files'
|
||||||
if [[ "$cur_type" = d ]] ; then
|
if [[ "$cur_type" = d ]] ; then
|
||||||
cur_type=f
|
cur_type=f
|
||||||
previous=${name}
|
previous=${name}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
Test the option to show dotfiles.
|
This test checks the option to show dotfiles.
|
||||||
--
|
--
|
||||||
# Turn it on.
|
# Turn it on.
|
||||||
nginx_start 'fancyindex_show_dotfiles on;'
|
nginx_start 'fancyindex_show_dotfiles on;'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test checks that a local footer can be included with
|
This test checks that a local footer can be included with
|
||||||
"fancyindex_header ... local"
|
"fancyindex_header ... local".
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test checks that a local header can be included with
|
This test checks that a local header can be included with
|
||||||
"fancyindex_header ... local"
|
"fancyindex_header ... local".
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test checks that both a local header and footer can be included with
|
This test checks that both a local header and footer can be included with
|
||||||
"fancyindex_{header,footer} ... local"
|
"fancyindex_{header,footer} ... local".
|
||||||
--
|
--
|
||||||
use pup
|
use pup
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test checks that local footers are correctly included in presence of
|
This test checks that local footers are correctly included in the presence of
|
||||||
directives in nested locations:
|
directives in nested locations:
|
||||||
|
|
||||||
fancyindex_footer <one> local;
|
fancyindex_footer <one> local;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
cat <<---
|
cat <<---
|
||||||
This test checks that the configuration file is properly parsed if there
|
This test checks that the configuration file is properly parsed if there
|
||||||
is only one parameter passed to the fancyndex_header and fancyindex_footer
|
is only one parameter passed to the fancyindex_header and fancyindex_footer
|
||||||
configuration directives.
|
configuration directives.
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue