initial wish tests and testing mods to help

This commit is contained in:
Remzi Arpaci-Dusseau
2019-02-18 07:35:01 -05:00
parent 7f85361a23
commit 206a461d62
38 changed files with 78 additions and 24 deletions

View File

@@ -0,0 +1 @@
Input to check bad cd. No arguments are passed to cd.

View File

@@ -0,0 +1 @@
An error has occurred

View File

@@ -0,0 +1,2 @@
cd
exit

View File

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/1.in

View File

@@ -0,0 +1 @@
2 arguments are passed to cd.

View File

@@ -0,0 +1 @@
An error has occurred

View File

@@ -0,0 +1,2 @@
cd /bad1 /bad2
exit

View File

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/2.in

View File

@@ -0,0 +1 @@
ls with a bad directory name.

View File

@@ -0,0 +1 @@
ls: /no/such/file: No such file or directory

View File

@@ -0,0 +1,2 @@
ls /no/such/file
exit

View File

View File

@@ -0,0 +1 @@
ls /no/such/file > tests/3.out 2> tests/3.err

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/3.in

View File

@@ -0,0 +1 @@
Input to run misc. commands.

View File

View File

@@ -0,0 +1,2 @@
cd tests/p2a-test
ls

View File

@@ -0,0 +1,4 @@
test1
test2
test3
test4

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/4.in

View File

@@ -0,0 +1 @@
Tries to exit with an argument. Should throw an error.

View File

@@ -0,0 +1 @@
An error has occurred

View File

@@ -0,0 +1,2 @@
exit bad
exit

View File

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/5.in

View File

@@ -0,0 +1 @@
Try running a shell script without setting path.

View File

@@ -0,0 +1 @@
An error has occurred

View File

@@ -0,0 +1,2 @@
p1.sh
exit

View File

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
./wish tests/6.in