This is an archive of the discontinued LLVM Phabricator instance.

[libc] Run libc tests unconditionally, even if there are no source changes.
ClosedPublic

Authored by sivachandra on Feb 8 2023, 9:45 PM.

Details

Summary

Before this change, the test binaries were executed only if the deps
changed. This change makes the test binaries run unconditionally. This
is more in line with the rest of LLVM. Future patches will print test
statistics etc., much like the rest of LLVM.

Diff Detail

Event Timeline

sivachandra created this revision.Feb 8 2023, 9:45 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 8 2023, 9:45 PM
sivachandra requested review of this revision.Feb 8 2023, 9:45 PM

This is one of the steps towards addressing the proposal made here: https://discourse.llvm.org/t/rfc-running-libc-tests-unconditionally/68207. Future changes will address other aspects of the proposal.

gchatelet added inline comments.Feb 9 2023, 12:57 AM
libc/cmake/modules/LLVMLibCTestRules.cmake
132–136

How about removing the NOT and swapping the two blocks? The condition is already a double negation.

Actually, how about renaming the CMake variable into LIBC_UNITTEST_RUN_POSTBUILD?

Address comment.

libc/cmake/modules/LLVMLibCTestRules.cmake
132–136

I have reversed the conditional but kept the name as is as it a optional argument to the function. So, it is OFF by default.

gchatelet accepted this revision.Feb 9 2023, 1:46 PM
This revision is now accepted and ready to land.Feb 9 2023, 1:46 PM