Repository navigation
CMake: iree check test functions - #1289
GMNGeoffrey wants to merge 12 commits into
Conversation
0207dfa to
18a1488
Compare
|
I got something working running the check test binary with cmake, but it seems cmake's handling of generated files is...poor. I inlined iree_bytecode_module for testing things out. I have read many blog posts now. The main thing I don't like about this is that it seems to require adding the iree_bytecode_module gen to ALL. Of course when I'm creating it I can wrap it in TESTONLY, but it just feels like quite a pile of hacks instead of having a proper dependency graph between tests and their dependencies. Any advice on how to do this properly would be appreciated. |
18a1488 to
326b690
Compare
|
I actually do not have a better proposal who to handle the generated sources... The tests all pass on my machine. So I am definitly good to go with this changes 👍 Only some minor remarks. |
1015c9d to
0266776
Compare
0266776 to
596485a
Compare
marbre
left a comment
There was a problem hiding this comment.
Except for the Bazel build errors, we can got forward with this 👍
Add a CMake function for creating iree-check-module tests. This adds CMake support for the test runner I've been working on (more details in #1308).
Getting test dependencies setup correctly turns out to be quite tricky in CMake. I think this is reasonable for now, but I think we should probably break cc_embed_data out of iree_bytecode_module and make the latter a proper target.