ci-c-util: support running with sanitizers#1
Conversation
Add the compiler-rt package which contains static and dynamic libraries for ASan and UBSan under LLVM. Signed-off-by: Frantisek Sumsal <frantisek@sumsal.cz>
Support building and testing with various sanitizers (currently only ASan and UBsan are supported out of the box). Signed-off-by: Frantisek Sumsal <frantisek@sumsal.cz>
|
@mrc0mmand thanks! I was kind of going to send a PR like that but I wasn't sure how
I'm just spitballing but I wonder if the tests could be run directly on Ubuntu? As far as I can see https://github.com/bus1/dbus-broker/blob/main/.github/workflows/codeql.yml builds and analyzes
Given that as far as I can see there is a job running the unit tests under Valgrind I think Anyway, I'd need to figure out how |
|
(traveling for 2 weeks, I will have a proper look when back) |
Support building and testing with various sanitizers (currently only
ASan and UBsan are supported out of the box).
Signed-off-by: Frantisek Sumsal frantisek@sumsal.cz
Hey!
I finally got some time to work on bus1/dbus-broker#281 (comment) and this is the first take. The idea is to run the test suite in the bus1/dbus-broker repository with a snippet like:
Unfortunately, I can't easily test this without reconfiguring image locations and pushing everything where it needs to be, so any insight or comments are very welcome.
/cc @evverx