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