summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:31:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:31:39 +0000
commitd8aef9a9a6830f3ebad592de63b412b3b70727ad (patch)
treefb1f900c08828fb885778aaa890858985c5f1fd1
parentmoved to ./Test/A05execution.ztst (diff)
downloadzsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar.gz
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar.bz2
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar.lz
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar.xz
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.tar.zst
zsh-d8aef9a9a6830f3ebad592de63b412b3b70727ad.zip
moved from ./Test/05command.ztst
-rw-r--r--Test/A05execution.ztst157
1 files changed, 157 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
new file mode 100644
index 000000000..8df04b027
--- /dev/null
+++ b/Test/A05execution.ztst
@@ -0,0 +1,157 @@
+%prep
+
+ storepath=($path)
+
+ mkdir command.tmp command.tmp/dir1 command.tmp/dir2
+
+ cd command.tmp
+
+ print '#!/bin/sh\necho This is top' >tstcmd
+ print '#!/bin/sh\necho This is dir1' >dir1/tstcmd
+ print '#!/bin/sh\necho This is dir2' >dir2/tstcmd
+
+ chmod 755 tstcmd dir1/tstcmd dir2/tstcmd
+
+%test
+ ./tstcmd
+0:./prog execution
+>This is top
+
+ path=($ZTST_testdir/command.tmp/dir1
+ $ZTST_testdir/command.tmp/dir2
+ .)
+ tstcmd
+ path=($storepath)
+0:path (1)
+>This is dir1