mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-08 17:16:38 +00:00
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
commit
c39114f1a9
64 changed files with 8704 additions and 0 deletions
32
testdata/testscript_explicit_exec.txt
vendored
Normal file
32
testdata/testscript_explicit_exec.txt
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Check that RequireExplicitExec works;
|
||||
# it should reject `fprintargs` in favor of `exec fprintargs`,
|
||||
# but it shouldn't complain about `some-param-cmd`,
|
||||
# as that Params.Cmds entry won't work via `exec some-param-cmd`.
|
||||
|
||||
unquote scripts-implicit/testscript.txt
|
||||
unquote scripts-explicit/testscript.txt
|
||||
|
||||
testscript scripts-implicit
|
||||
testscript scripts-explicit
|
||||
|
||||
! testscript -explicit-exec scripts-implicit
|
||||
testscript -explicit-exec scripts-explicit
|
||||
|
||||
-- scripts-implicit/testscript.txt --
|
||||
>fprintargs stdout right
|
||||
>cmp stdout expect
|
||||
>
|
||||
>some-param-cmd
|
||||
>! exec some-param-cmd
|
||||
>
|
||||
>-- expect --
|
||||
>right
|
||||
-- scripts-explicit/testscript.txt --
|
||||
>exec fprintargs stdout right
|
||||
>cmp stdout expect
|
||||
>
|
||||
>some-param-cmd
|
||||
>! exec some-param-cmd
|
||||
>
|
||||
>-- expect --
|
||||
>right
|
||||
Loading…
Add table
Add a link
Reference in a new issue