Added some test cases, not all of which are supported yet

This commit is contained in:
Vidar Holen 2012-11-04 18:10:51 -08:00
parent cde1e2966f
commit a7afa32075
22 changed files with 28 additions and 0 deletions

2
goodcase/double Normal file
View file

@ -0,0 +1,2 @@
echo hello
echo world

1
goodcase/double2 Normal file
View file

@ -0,0 +1 @@
echo one; echo two

1
goodcase/forloop Normal file
View file

@ -0,0 +1 @@
for f in *; do echo "$f"; done

1
goodcase/if Normal file
View file

@ -0,0 +1 @@
if true; then echo foo; fi

4
goodcase/ifcommand Normal file
View file

@ -0,0 +1,4 @@
if file foo 2>&1 | grep lol 2> /dev/null
then
echo cow
fi

1
goodcase/iftest Normal file
View file

@ -0,0 +1 @@
if [[ $B == 3 ]]; then echo cow; fi

1
goodcase/redir Normal file
View file

@ -0,0 +1 @@
echo cow > file

1
goodcase/redir2 Normal file
View file

@ -0,0 +1 @@
echo lol 2> /dev/null

1
goodcase/redir3 Normal file
View file

@ -0,0 +1 @@
cmd > /dev/null 2>&1

1
goodcase/simple Normal file
View file

@ -0,0 +1 @@
echo hello