File: testscript_explicit_files.txt

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: makefile: 6
file content (26 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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'