File: shell

package info (click to toggle)
valgrind 1%3A3.3.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 34,452 kB
  • ctags: 27,778
  • sloc: ansic: 234,398; sh: 14,186; xml: 11,662; perl: 4,410; asm: 3,135; makefile: 3,011; exp: 625; cpp: 255; haskell: 195
file content (41 lines) | stat: -rwxr-xr-x 1,008 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh
#
# Testing various shell script invocations.

#----------------------------------------------------------------------------
# Shell scripts that should fail
#----------------------------------------------------------------------------

echo "Execute a directory"
./x86/

echo "Execute a non-executable file"
./shell.vgtest

echo "Execute a script with a bad interpreter name"
./shell_badinterp

echo "Execute a binary file"
./shell_binaryfile

echo "Execute a non-existent file"
./shell_nosuchfile

echo "Execute a non-existent file (2)"
shell_nosuchfile

#----------------------------------------------------------------------------
# Shell scripts that should pass
#----------------------------------------------------------------------------
echo "Execute a valid script with a #! line"
./shell_valid1

echo "Execute a valid script without a #! line"
./shell_valid2

echo "Execute a valid script with #! but no interpname"
./shell_valid3

echo "Execute a zero-length file"
./shell_zerolength