Browse Source

[enh] unit tests: enable pipe checking and add new rules.

Moul 4 years ago
parent
commit
428e7a33b8
1 changed files with 7 additions and 3 deletions
  1. 7 3
      tests.sh

+ 7 - 3
tests.sh

@@ -47,9 +47,13 @@ tests=(
 #"    \t  " # espaces, tabulations
 
 ## Pipe
-#"ls | cat" # pipe simple
-#"ls | cat | cat" # pipe double
-#"ls | cat | cat | cat" # pipe triple
+"ls | cat" # pipe simple
+"ls | cat | cat" # pipe double
+"ls | cat | cat | cat" # pipe triple
+"ls -A -l | cat -e | cat -e" # pipe double with options
+"ls | cat | wc -l" # different commands
+"ls | cat | cat | cat | cat | cat | cat | cat | cat | cat | cat \
+	| cat | cat | cat | cat | cat | cat | cat | cat | cat | cat" # twenty pipes
 
 ## Redirections droite
 #"ls > /tmp/toto ; cat /tmp/toto" # simple