File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
misc/python/materialize/mzcompose Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ def main() -> int:
44
44
[
45
45
"--find" ,
46
46
composition ,
47
- "--coverage" ,
48
47
"down" ,
49
48
"-v" ,
50
49
]
@@ -56,21 +55,35 @@ def main() -> int:
56
55
"rust-profdata" ,
57
56
"merge" ,
58
57
"-sparse" ,
59
- * Path ("test/sqllogictest/coverage" ).glob ("sqllogictest *.profraw" ),
58
+ * Path ("test/sqllogictest/coverage" ).glob ("*.profraw" ),
60
59
"-o" ,
61
60
"sqllogictest.profdata" ,
62
61
]
63
62
)
64
- with open ("coverage-sqllogictest.json " , "w" ) as out :
63
+ with open ("coverage-sqllogictest.lcov " , "w" ) as out :
65
64
subprocess .run (
66
65
[
67
66
"rust-cov" ,
68
67
"export" ,
68
+ "--format=lcov" ,
69
69
"./target-xcompile/x86_64-unknown-linux-gnu/release/sqllogictest" ,
70
+ "./target-xcompile/x86_64-unknown-linux-gnu/release/clusterd" ,
70
71
"--instr-profile=sqllogictest.profdata" ,
71
72
],
72
73
stdout = out ,
73
74
)
75
+ # XXX may need to do this with the volumes still around
76
+ with open ("coverage-sqllogictest.html" , "w" ) as out :
77
+ subprocess .run (
78
+ [
79
+ "rust-cov" ,
80
+ "show" ,
81
+ "--format=html" ,
82
+ "./target-xcompile/x86_64-unknown-linux-gnu/release/sqllogictest" ,
83
+ "--instr-profile=sqllogictest.profdata" ,
84
+ ],
85
+ stdout = out
86
+ )
74
87
75
88
return 0
76
89
Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ def _munge_services(
195
195
# this only have an effect if the service runs instrumented Rust
196
196
# binaries.
197
197
config .setdefault ("volumes" , []).append (coverage_volume )
198
+ # XXX may need to change this per-binary, so perhaps
199
+ # we shouldn't set this here.
198
200
config .setdefault ("environment" , []).append (
199
201
f"LLVM_PROFILE_FILE=/coverage/{ name } -%m.profraw"
200
202
)
You can’t perform that action at this time.
0 commit comments