1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-08 17:16:38 +00:00
testscript-rs/testdata/testscript_explicit_files.txt
Jason Hall c39114f1a9 initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-26 18:41:14 -04:00

26 lines
696 B
Text

# Check that we can pass an explicit set of files to be tested.
! testscript -files foo.txtar x/bar.txtar y/bar.txtar 'y/bar#1.txtar'
cmpenv stdout expect-stdout
-- expect-stdout --
** RUN foo **
PASS
** RUN bar **
PASS
** RUN bar#1 **
> echoandexit 1 '' 'bar#1 failure'
[stderr]
bar#1 failure
FAIL: $$WORK${/}y${/}bar.txtar:1: told to exit with code 1
** RUN bar#1#1 **
> echoandexit 1 '' 'bar#1#1 failure'
[stderr]
bar#1#1 failure
FAIL: $$WORK${/}y${/}bar#1.txtar:1: told to exit with code 1
-- foo.txtar --
echoandexit 0 '' 'foo failure'
-- x/bar.txtar --
echoandexit 0 '' 'bar failure'
-- y/bar.txtar --
echoandexit 1 '' 'bar#1 failure'
-- y/bar#1.txtar --
echoandexit 1 '' 'bar#1#1 failure'