mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 05:55:48 +00:00
New directory: none/tests/scripts
Move corresponding testcases there. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15065
This commit is contained in:
41
none/tests/scripts/shell
Executable file
41
none/tests/scripts/shell
Executable file
@@ -0,0 +1,41 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Testing various shell script invocations.
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Shell scripts that should fail
|
||||
#----------------------------------------------------------------------------
|
||||
LC_ALL=C
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user