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
21
testdata/testscript_stdout_stderr_error.txt
vendored
Normal file
21
testdata/testscript_stdout_stderr_error.txt
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Verify that stdout and stderr get set event when a user-builtin
|
||||
# command aborts. Note that we need to assert against stdout
|
||||
# because our meta testscript command sees only a single log.
|
||||
unquote scripts/testscript.txt
|
||||
! testscript -v scripts
|
||||
cmpenv stdout stdout.golden
|
||||
|
||||
-- scripts/testscript.txt --
|
||||
> printargs hello world
|
||||
> echoandexit 1 'this is stdout' 'this is stderr'
|
||||
-- stdout.golden --
|
||||
** RUN testscript **
|
||||
> printargs hello world
|
||||
[stdout]
|
||||
["printargs" "hello" "world"]
|
||||
> echoandexit 1 'this is stdout' 'this is stderr'
|
||||
[stdout]
|
||||
this is stdout
|
||||
[stderr]
|
||||
this is stderr
|
||||
FAIL: ${$}WORK${/}scripts${/}testscript.txt:2: told to exit with code 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue