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 section4
30
31 # comment 5
32 printargs section5
33 status 1
34
35 # comment 6
36 printargs section6
37
38 -- expect-stdout.txt --
39 ** RUN testscript **
40 # comment 1 (0.000s)
41 # comment 2 (0.000s)
42 # comment 3 (0.000s)
43 > printargs section3
44 [stdout]
45 ["printargs" "section3"]
46 > status 1
47 [exit status 1]
48 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
49 -- expect-stdout-v.txt --
50 ** RUN testscript **
51 # comment 1 (0.000s)
52 > printargs section1
53 [stdout]
54 ["printargs" "section1"]
55 # comment 2 (0.000s)
56 > printargs section2
57 [stdout]
58 ["printargs" "section2"]
59 # comment 3 (0.000s)
60 > printargs section3
61 [stdout]
62 ["printargs" "section3"]
63 > status 1
64 [exit status 1]
65 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
66 -- expect-stdout-c.txt --
67 ** RUN testscript **
68 # comment 1 (0.000s)
69 # comment 2 (0.000s)
70 # comment 3 (0.000s)
71 > printargs section3
72 [stdout]
73 ["printargs" "section3"]
74 > status 1
75 [exit status 1]
76 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
77 # comment 4 (0.000s)
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 # comment 6 (0.000s)
86 -- expect-stdout-vc.txt --
87 ** RUN testscript **
88 # comment 1 (0.000s)
89 > printargs section1
90 [stdout]
91 ["printargs" "section1"]
92 # comment 2 (0.000s)
93 > printargs section2
94 [stdout]
95 ["printargs" "section2"]
96 # comment 3 (0.000s)
97 > printargs section3
98 [stdout]
99 ["printargs" "section3"]
100 > status 1
101 [exit status 1]
102 FAIL: $$WORK${/}scripts${/}testscript.txt:9: unexpected command failure
103 # comment 4 (0.000s)
104 > printargs section4
105 [stdout]
106 ["printargs" "section4"]
107 # comment 5 (0.000s)
108 > printargs section5
109 [stdout]
110 ["printargs" "section5"]
111 > status 1
112 [exit status 1]
113 FAIL: $$WORK${/}scripts${/}testscript.txt:16: unexpected command failure
114 # comment 6 (0.000s)
115 > printargs section6
116 [stdout]
117 ["printargs" "section6"]