(Re)introduce a list of macros that can avoid testing - #2188
Conversation
58d9e1d to
bfce748
Compare
|
@aphecetche yes, this logics looks fine for me, but I don't understand failing checkcode, it mentions Concerning currently excluded macros: are operational macros (I used them occasionally) and passing the test, why they were excluded? |
|
Looks good to me, for the GPU macros, I think some of them were tested before. But anyway, I can go through the list once later, and try to include tests for as many as possible.
Kind Regards
David Rohr
Sent from my mobile. (Excuse the typos!)
…On July 10, 2019 11:05:12 PM GMT+02:00, Laurent Aphecetche ***@***.***> wrote:
@shahor02 @davidrohr would that work for you ?
btw, in the list of excluded macros, are there some that you know
should actually be tested ? (I must confess I'm not so sure for all of
them why they ended up in the non-tested list...)
You can view, comment on, or merge this pull request online at:
#2188
-- Commit Summary --
* (Re)introduce a list of macro that can avoid testing
-- File Changes --
M cmake/O2ReportNonTestedMacros.cmake (51)
A cmake/O2RootMacroExclusionList.cmake (47)
-- Patch Links --
https://github.com/AliceO2Group/AliceO2/pull/2188.patch
https://github.com/AliceO2Group/AliceO2/pull/2188.diff
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2188
|
|
@shahor02 the o2checkcode fails because some macros require simulation parts that are not built. Means I have to change a bit the logic : always call o2_add_test_root_macro but add a parameter to signal whether or not it should actually perform the test, depending on whether or not BUILD_SIMULATION is on. For the 3 missing macros, no particular reason as far as I can tell, will put them back. |
|
Sounds good to me.
|
|
@aphecetche I refer to this failure in checkode: macro declared as excluded and then reported to be in neither of the list (while it is requested to be tested) |
|
@shahor02 o2_add_test_root_macro for commonConfig.C is called in a sub_directory which is not included when BUILD_SIMULATION=OFF (which is the case when some pythia or geant stuff is not found, e.g. on o2checkcode CI slaves) Contrary to my comment above though, can't really add a parameter to o2_add_test_root_macro as in the case for commonConfig.C exemplifies, sometimes a full CMakeLists.txt is skipped. Guess the exclusion list have to include a couple of if(BUILD_SIMULATION) and if(pythia6_FOUND) ... |
|
I see, thanks! |
bfce748 to
18cf2fa
Compare
|
on closer look : were excluded because they are the same as the ones in For the rest, macros that are specific to simulation are now put on the exclusion list when required. That should fix the o2checkcode build. |
|
@shahor02 @davidrohr Don't exactly understand the issue with clang-format ... Doing git-clang-format locally the line reported by travis I get : ..... but the others are green. |
|
@aphecetche It complains about the macro which should be anyway removed since duplicated (as you found). I'll merge this PR then remove the macro and update the lists |
@shahor02 @davidrohr would that work for you ?
btw, in the list of excluded macros, are there some that you know should actually be tested ? (I must confess I'm not so sure for all of them why they ended up in the non-tested list...)