njn | 7375061 | 2005-10-14 03:11:30 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # |
| 3 | # Testing various shell script invocations. |
| 4 | |
| 5 | #---------------------------------------------------------------------------- |
| 6 | # Shell scripts that should fail |
| 7 | #---------------------------------------------------------------------------- |
| 8 | |
| 9 | echo "Execute a directory" |
| 10 | x86/ |
| 11 | |
| 12 | echo "Execute a directory (2)" |
| 13 | x86 |
| 14 | |
| 15 | echo "Execute a non-executable file" |
| 16 | shell.vgtest |
| 17 | |
| 18 | echo "Execute a script with a bad interpreter name" |
| 19 | shell_badinterp |
| 20 | |
| 21 | echo "Execute a binary file" |
| 22 | shell_binaryfile |
| 23 | |
| 24 | echo "Execute a non-existent file" |
| 25 | shell_nosuchfile |
| 26 | |
| 27 | #---------------------------------------------------------------------------- |
| 28 | # Shell scripts that should pass |
| 29 | #---------------------------------------------------------------------------- |
| 30 | echo "Execute a valid script with a #! line" |
| 31 | shell_valid1 |
| 32 | |
| 33 | echo "Execute a valid script without a #! line" |
| 34 | shell_valid2 |
| 35 | |
| 36 | echo "Execute a valid script with #! but no interpname" |
| 37 | shell_valid3 |
| 38 | |
| 39 | echo "Execute a zero-length file" |
| 40 | shell_zerolength |
| 41 | |