Debian Codegraph @

testscript/testdata/testscript_logging.txt

raw
1 # non-verbose, non-continue
2 ! testscript scripts
3 cmpenv stdout expect-stdout.txt
4
5 # verbose
6 ! testscript -v scripts
7 cmpenv stdout expect-stdout-v.txt
8
9 # continue
10 ! testscript -continue scripts
11 cmpenv stdout expect-stdout-c.txt
12
13 # verbose, continue
14 ! testscript -v -continue scripts
15 cmpenv stdout expect-stdout-vc.txt
16
17 -- scripts/testscript.txt --
18 # comment 1
19 printargs section1
20
21 # comment 2
22 printargs section2
23
24 # comment 3
25 printargs section3
26 status 1
27
28 # comment 4
29 printargs section3
30
31 # comment 5
32 printargs section5
33 status 1
34
35 -- expect-stdout.txt --
36 ** RUN testscript **
37 # comment 1 (0.000s)
38 # comment 2 (0.000s)
39 # comment 3 (0.000s)
40 > printargs section3
41 [stdout]
42 ["printargs" "section3"]
43 > status 1
44 [exit status 1]
45 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
46 -- expect-stdout-v.txt --
47 ** RUN testscript **
48 # comment 1 (0.000s)
49 > printargs section1
50 [stdout]
51 ["printargs" "section1"]
52 # comment 2 (0.000s)
53 > printargs section2
54 [stdout]
55 ["printargs" "section2"]
56 # comment 3 (0.000s)
57 > printargs section3
58 [stdout]
59 ["printargs" "section3"]
60 > status 1
61 [exit status 1]
62 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
63 -- expect-stdout-c.txt --
64 ** RUN testscript **
65 # comment 1 (0.000s)
66 # comment 2 (0.000s)
67 # comment 3 (0.000s)
68 > printargs section3
69 [stdout]
70 ["printargs" "section3"]
71 > status 1
72 [exit status 1]
73 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
74 # comment 4 (0.000s)
75 > printargs section3
76 [stdout]
77 ["printargs" "section3"]
78 # comment 5 (0.000s)
79 > printargs section5
80 [stdout]
81 ["printargs" "section5"]
82 > status 1
83 [exit status 1]
84 FAIL: $$WORK${/}scripts${/}testscript.txt:16: unexpected command failure
85 -- expect-stdout-vc.txt --
86 ** RUN testscript **
87 # comment 1 (0.000s)
88 > printargs section1
89 [stdout]
90 ["printargs" "section1"]
91 # comment 2 (0.000s)
92 > printargs section2
93 [stdout]
94 ["printargs" "section2"]
95 # comment 3 (0.000s)
96 > printargs section3
97 [stdout]
98 ["printargs" "section3"]
99 > status 1
100 [exit status 1]
101 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
102 # comment 4 (0.000s)
103 > printargs section3
104 [stdout]
105 ["printargs" "section3"]
106 # comment 5 (0.000s)
107 > printargs section5
108 [stdout]
109 ["printargs" "section5"]
110 > status 1
111 [exit status 1]
112 FAIL: $$WORK${/}scripts${/}testscript.txt:16: unexpected command failure