Skip to content

Use the real lit tool for lit testing - #8166

Merged
GMNGeoffrey merged 19 commits into
iree-org:mainfrom
GMNGeoffrey:real-lit-2
Jan 24, 2022
Merged

GMNGeoffrey merged 19 commits into
iree-org:mainfrom
GMNGeoffrey:real-lit-2

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Jan 22, 2022 •

Copy link
Copy Markdown
Member

For historical reasons, we've used a custom shell script to run our lit
tests. We've made it less bad over time, but it's time to just use the
real thing. This gets the real lit tool running under Bazel (and CMake,
but that's less hard).

I hope to upstream some of this Bazel stuff, but LLVM's lit setup is
way more complicated, so checking this in here for now.

Fixes #818

@GMNGeoffrey
GMNGeoffrey marked this pull request as ready for review January 22, 2022 06:42
@GMNGeoffrey
GMNGeoffrey enabled auto-merge (squash) January 22, 2022 06:43
@ScottTodd ScottTodd added the infrastructure Relating to build systems, CI, or testing label Jan 24, 2022
Comment thread iree/samples/vision/CMakeLists.txt Resolved
Comment thread build_tools/cmake/iree_lit_test.cmake Resolved
@GMNGeoffrey
GMNGeoffrey requested a review from ScottTodd January 24, 2022 21:27
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Ok got things fixed and cleaned up some of our FileCheck dependence a bit as well. Now with real lit we get things like placeholders for the current directory as well as the current file 🥳

Comment thread iree/tools/CMakeLists.txt
Comment on lines +462 to +466
# Ensure FileCheck gets built. Tests don't have dependencies in CMake because
# they aren't targets. So until we fix that, we just force this to get built.
# Limiting this to when IREE_BUILD_TESTS is set prevents the installation
# below, which we use for cross-platform testing.
set_target_properties(FileCheck PROPERTIES EXCLUDE_FROM_ALL OFF)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, automerge is doing that for you by merging this :-P

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, automerge.. well, that will run on postsubmit anyways :P I can keep an eye on https://buildkite.com/iree/iree-build-configurations/builds/1887

aaand as I'm typing this it already finished. Looks good.

@GMNGeoffrey
GMNGeoffrey merged commit 435c270 into iree-org:main Jan 24, 2022
@GMNGeoffrey
GMNGeoffrey deleted the real-lit-2 branch January 24, 2022 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove iree/tools/run_lit.* scripts when using cmake

2 participants