llvm.org GIT mirror llvm / 1ee7070
[lit] Fix a bug where UNRESOLVED tests were not handled in the XUnit XML printer. A test has been added that tries to comprehensively test emitting XUnit XML output for shell tests. Differential Revision: https://reviews.llvm.org/D45567 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330409 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Liew 1 year, 5 months ago
2 changed file(s) with 80 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
372372
373373 xml = "
375 xml += " time='%.2f'" % (self.result.elapsed,)
375 xml += " time='{:.2f}'".format(
376 self.result.elapsed if self.result.elapsed is not None else 0.0)
376377 if self.result.code.isFailure:
377378 xml += ">\n\t\n" + escape(self.result.output)
378379 xml += "\n\t\n"
0 # RUN: not %{lit} -j 1 -v %{inputs}/shtest-format - --xunit-xml-output %t.xml
1 # RUN: FileCheck < %t.xml %s
2
3 # CHECK:
4 # CHECK-NEXT:
5 # CHECK-NEXT:
6
7 # CHECK:
8
9 # CHECK:
10 # CHECK-NEXT:
11 # CHECK:
12 # CHECK-NEXT:
13
14
15 # CHECK:
16 # CHECK-NEXT:
17 # CHECK:
18 # CHECK-NEXT:
19
20 # CHECK:
21
22 # CHECK:
23 # CHECK-NEXT:
24 # CHECK:
25 # CHECK-NEXT:
26
27 # CHECK:
28 # CHECK-NEXT:
29 # CHECK:
30 # CHECK-NEXT:
31
32 # CHECK:
33
34 # CHECK:
35
36 # CHECK:
37
38 # CHECK:
39
40 # CHECK:
41
42 # CHECK:
43 # CHECK-NEXT:
44 # CHECK:
45 # CHECK-NEXT:
46
47
48 # CHECK:
49
50 # CHECK:
51
52 # CHECK:
53
54 # CHECK:
55 # CHECK-NEXT:
56 # CHECK:
57 # CHECK-NEXT:
58
59 # CHECK:
60
61 # CHECK:
62
63 # CHECK:
64
65 # CHECK:
66
67 # CHECK:
68
69 # CHECK:
70
71 # CHECK:
72 # CHECK-NEXT:
73 # CHECK:
74 # CHECK-NEXT:
75
76 # CHECK:
77 # CHECK-NEXT: