Skip to content

Conversation

@rupprecht
Copy link
Collaborator

Mostly just adding tests that are in clang/unittests/CMakeLists.txt, but there a couple other cleanups here:

  • Add directory_watcher targets in clang so we can add tests for it
  • Add some library targets (e.g. dataflow_testing_support) for downstream use (e.g. unit tests outside of LLVM that use these headers in tests)
  • Remove rename_tests_tooling_hdrs which has been unused since rename_tests itself was deleted

The InterpreterTest target added here passes on our internal CI, but fails when I run it w/ bazel for some reason:

[ RUN      ] InterpreterTest.InstantiateTemplate
JIT session error: Symbols not found: [ __clang_Interpreter_SetValueWithAlloc, _ZnwmPv26__clang_Interpreter_NewTag ]
Failure value returned from cantFail wrapped call
Failed to materialize symbols: { (main, { __orc_init_func.incr_module_133, $.incr_module_133.__inits.0 }) }

I'd like to figure out what's going on, but for now I just excluded it w/ a test filter

@rupprecht rupprecht requested a review from slackito July 24, 2025 18:23
@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Jul 24, 2025
@rupprecht rupprecht merged commit 74ce508 into llvm:main Jul 24, 2025
11 checks passed
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Mostly just adding tests that are in clang/unittests/CMakeLists.txt, but
there a couple other cleanups here:
* Add `directory_watcher` targets in clang so we can add tests for it
* Add some library targets (e.g. `dataflow_testing_support`) for
downstream use (e.g. unit tests outside of LLVM that use these headers
in tests)
* Remove `rename_tests_tooling_hdrs` which has been unused since
`rename_tests` itself was deleted

The InterpreterTest target added here passes on our internal CI, but
fails when I run it w/ bazel for some reason:
```
[ RUN      ] InterpreterTest.InstantiateTemplate
JIT session error: Symbols not found: [ __clang_Interpreter_SetValueWithAlloc, _ZnwmPv26__clang_Interpreter_NewTag ]
Failure value returned from cantFail wrapped call
Failed to materialize symbols: { (main, { __orc_init_func.incr_module_133, $.incr_module_133.__inits.0 }) }
```
I'd like to figure out what's going on, but for now I just excluded it
w/ a test filter
@rupprecht rupprecht deleted the bzl-clang-unittests branch August 14, 2025 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel "Peripheral" support tier build system: utils/bazel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants