blob: 588a95daddb061775477dd11aafc33a0421e37da [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#----------------------------------------------------------------------------
florianc6fccd62012-02-15 03:57:27 +00008LC_ALL=C
njn73750612005-10-14 03:11:30 +00009echo "Execute a directory"
njn746f02c2005-10-15 15:28:31 +000010./x86/
njn73750612005-10-14 03:11:30 +000011
12echo "Execute a non-executable file"
njn746f02c2005-10-15 15:28:31 +000013./shell.vgtest
njn73750612005-10-14 03:11:30 +000014
15echo "Execute a script with a bad interpreter name"
njn746f02c2005-10-15 15:28:31 +000016./shell_badinterp
njn73750612005-10-14 03:11:30 +000017
18echo "Execute a binary file"
njn746f02c2005-10-15 15:28:31 +000019./shell_binaryfile
njn73750612005-10-14 03:11:30 +000020
21echo "Execute a non-existent file"
njn746f02c2005-10-15 15:28:31 +000022./shell_nosuchfile
23
24echo "Execute a non-existent file (2)"
njn73750612005-10-14 03:11:30 +000025shell_nosuchfile
26
27#----------------------------------------------------------------------------
28# Shell scripts that should pass
29#----------------------------------------------------------------------------
30echo "Execute a valid script with a #! line"
njn746f02c2005-10-15 15:28:31 +000031./shell_valid1
njn73750612005-10-14 03:11:30 +000032
33echo "Execute a valid script without a #! line"
njn746f02c2005-10-15 15:28:31 +000034./shell_valid2
njn73750612005-10-14 03:11:30 +000035
36echo "Execute a valid script with #! but no interpname"
njn746f02c2005-10-15 15:28:31 +000037./shell_valid3
njn73750612005-10-14 03:11:30 +000038
39echo "Execute a zero-length file"
njn746f02c2005-10-15 15:28:31 +000040./shell_zerolength
njn73750612005-10-14 03:11:30 +000041