Tests: Fix typos in descriptions and messages

pull/145/head
Ryan Schmidt 2022-05-08 23:42:54 -05:00 committed by Adrian Perez
parent 698e7ce4b9
commit b9ecd5bcb4
10 changed files with 14 additions and 13 deletions

View File

@ -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)

View File

@ -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

View File

@ -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;'

View File

@ -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}

View File

@ -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;'

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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.
-- --