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