diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-09-05 09:42:10 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-09-05 09:42:10 +0000 |
commit | 560cfe4de3e63e664fc297f927e761d8e62afbbb (patch) | |
tree | 00a3adcc5b6525f24fde4ca1fd4dfcb2c4741709 /tools/regression/bin/sh/builtins | |
parent | 549c6812a94339302b34e899ce15d452ed69ef23 (diff) | |
download | FreeBSD-src-560cfe4de3e63e664fc297f927e761d8e62afbbb.zip FreeBSD-src-560cfe4de3e63e664fc297f927e761d8e62afbbb.tar.gz |
- Add tests for hash and return and more tests for set -e.
- Simplify regress.sh, sort tests.
Diffstat (limited to 'tools/regression/bin/sh/builtins')
-rw-r--r-- | tools/regression/bin/sh/builtins/hash1.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/hash1.0.stdout | 1 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/hash2.0 | 4 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/hash2.0.stdout | 1 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/hash3.0 | 3 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/hash3.0.stdout | 2 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/return1.0 | 7 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/return2.1 | 7 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/return3.1 | 3 |
9 files changed, 33 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/hash1.0 b/tools/regression/bin/sh/builtins/hash1.0 new file mode 100644 index 0000000..45cc300 --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash1.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ +cat /dev/null +hash +hash -r +hash diff --git a/tools/regression/bin/sh/builtins/hash1.0.stdout b/tools/regression/bin/sh/builtins/hash1.0.stdout new file mode 100644 index 0000000..3afc3e7 --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash1.0.stdout @@ -0,0 +1 @@ +/bin/cat diff --git a/tools/regression/bin/sh/builtins/hash2.0 b/tools/regression/bin/sh/builtins/hash2.0 new file mode 100644 index 0000000..e5cd21b --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash2.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ +hash +hash cat +hash diff --git a/tools/regression/bin/sh/builtins/hash2.0.stdout b/tools/regression/bin/sh/builtins/hash2.0.stdout new file mode 100644 index 0000000..3afc3e7 --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash2.0.stdout @@ -0,0 +1 @@ +/bin/cat diff --git a/tools/regression/bin/sh/builtins/hash3.0 b/tools/regression/bin/sh/builtins/hash3.0 new file mode 100644 index 0000000..eade0b3 --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash3.0 @@ -0,0 +1,3 @@ +# $FreeBSD$ +hash -v cat +hash diff --git a/tools/regression/bin/sh/builtins/hash3.0.stdout b/tools/regression/bin/sh/builtins/hash3.0.stdout new file mode 100644 index 0000000..a34864c --- /dev/null +++ b/tools/regression/bin/sh/builtins/hash3.0.stdout @@ -0,0 +1,2 @@ +/bin/cat +/bin/cat diff --git a/tools/regression/bin/sh/builtins/return1.0 b/tools/regression/bin/sh/builtins/return1.0 new file mode 100644 index 0000000..787e892 --- /dev/null +++ b/tools/regression/bin/sh/builtins/return1.0 @@ -0,0 +1,7 @@ +# $FreeBSD$ +f() { + return 0 + exit 1 +} + +f diff --git a/tools/regression/bin/sh/builtins/return2.1 b/tools/regression/bin/sh/builtins/return2.1 new file mode 100644 index 0000000..0ef8171 --- /dev/null +++ b/tools/regression/bin/sh/builtins/return2.1 @@ -0,0 +1,7 @@ +# $FreeBSD$ +f() { + true && return 1 + return 0 +} + +f diff --git a/tools/regression/bin/sh/builtins/return3.1 b/tools/regression/bin/sh/builtins/return3.1 new file mode 100644 index 0000000..605ec68 --- /dev/null +++ b/tools/regression/bin/sh/builtins/return3.1 @@ -0,0 +1,3 @@ +# $FreeBSD$ +return 1 +exit 0 |