Add a --just-submit=xxx.json option to "lnt runtest test-suite". When this option is used the cmake/make/lit steps are skipped and just the submitted xxx.json lit result is submitted to the lnt server.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
I should also mention that this commit rewrites some sketchy detection of test compilation failures which would previously look for .test files - unfortuntately those exist even if the compilation failed. Instead I look for the newly introduced 'NOEXE' flag from the lit output now. (I did this as part of this patch because I wanted to get rid of any filesystem activity outside of reading the xxx.json file in --just-submit mode).
I agree with the updated test parsing logic, that is much better.
This flag seems to be redundant to the "lnt submit" feature which is supposed to do exactly the same thing. I would guess that does not work with the lit json directly though? It seems to me that would be a better place for this functionality, otherwise we have lnt runtest test-suite --just-submit <json> and lnt submit <json> which do the same thing to different kinds of json files.
Yes that sounds like the better approach in terms of usability. I just have to find a way to refactor this because it currently relies on some code from test-suite.py/builtintest.py to fill in some information about the compiler and run orders which isn't available in the lit output.