Tests: Fix typos in descriptions and messages
							parent
							
								
									698e7ce4b9
								
							
						
					
					
						commit
						b9ecd5bcb4
					
				| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
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;'
 | 
			
		||||
content=$(fetch)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
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
 | 
			
		||||
a directory index.
 | 
			
		||||
file, and checks that the output contains a few HTML elements known to
 | 
			
		||||
exist in a directory index.
 | 
			
		||||
--
 | 
			
		||||
use pup
 | 
			
		||||
nginx_start
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
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
 | 
			
		||||
nginx_start 'fancyindex_hide_parent_dir on;'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
This test check the output using "fancyindex_directories_first on"
 | 
			
		||||
This test checks the output using "fancyindex_directories_first on".
 | 
			
		||||
--
 | 
			
		||||
use pup
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ while read -r name ; do
 | 
			
		|||
		;;
 | 
			
		||||
	*d*)
 | 
			
		||||
		echo "dir $name"
 | 
			
		||||
		[[ "$cur_type" = f ]] && fail 'Directories should come before Files'
 | 
			
		||||
		[[ "$cur_type" = f ]] && fail 'Directories should come before files'
 | 
			
		||||
		cur_type=d
 | 
			
		||||
		if [[ -z ${previous} ]] ; then
 | 
			
		||||
			previous=${name}
 | 
			
		||||
| 
						 | 
				
			
			@ -34,7 +34,7 @@ while read -r name ; do
 | 
			
		|||
		;;
 | 
			
		||||
	*f*)
 | 
			
		||||
		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
 | 
			
		||||
			cur_type=f
 | 
			
		||||
			previous=${name}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
Test the option to show dotfiles.
 | 
			
		||||
This test checks the option to show dotfiles.
 | 
			
		||||
--
 | 
			
		||||
# Turn it on.
 | 
			
		||||
nginx_start 'fancyindex_show_dotfiles on;'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
This test checks that a local footer can be included with
 | 
			
		||||
"fancyindex_header ... local"
 | 
			
		||||
"fancyindex_header ... local".
 | 
			
		||||
--
 | 
			
		||||
use pup
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
This test checks that a local header can be included with
 | 
			
		||||
"fancyindex_header ... local"
 | 
			
		||||
"fancyindex_header ... local".
 | 
			
		||||
--
 | 
			
		||||
use pup
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
This test checks that both a local header and footer can be included with
 | 
			
		||||
"fancyindex_{header,footer} ... local"
 | 
			
		||||
"fancyindex_{header,footer} ... local".
 | 
			
		||||
--
 | 
			
		||||
use pup
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
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:
 | 
			
		||||
 | 
			
		||||
	fancyindex_footer <one> local;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#! /bin/bash
 | 
			
		||||
cat <<---
 | 
			
		||||
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.
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue