Skip to content

[roottest] dismiss RootExeOptions and RootExternalIncludes cmake variables #19086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

linev
Copy link
Member

@linev linev commented Jun 18, 2025

Both variables adding custom arguments to root.exe invocation in the roottest macros.
Main disadvantage of such variables - all consequent tests will use such variables -
which was not necessary in several cases, especially in root/tree/cloning tests.

All this can be replaced by ROOTEXE_OPTS argument of ROOTTEST_ADD_TEST macro.
It assigned per-test and therefore more precise.

In the tests where such options were replaced also fix dependencies using fixtures -
which is more reliable than use of DEPENDS arguments.

linev added 2 commits June 18, 2025 16:20
It is more clear to provide root.exe options in ROOTTEST_ADD_TEST macro
Use (void)gSystem->Load(\"libbase\") to exclude extra printout
Configure fixture instead of dependency
@linev linev requested a review from pcanal June 18, 2025 14:34
@linev linev self-assigned this Jun 18, 2025
@linev linev requested a review from bellenot as a code owner June 18, 2025 14:34
@linev linev requested a review from dpiparo as a code owner June 18, 2025 14:34
@linev linev force-pushed the roottest_exe_opts branch from bb76771 to fcfd04b Compare June 18, 2025 15:54
Copy link

github-actions bot commented Jun 18, 2025

Test Results

    20 files      20 suites   3d 21h 50m 52s ⏱️
 3 049 tests  3 047 ✅ 0 💤 2 ❌
59 276 runs  59 274 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 618747b.

♻️ This comment has been updated with latest results.

linev added 3 commits June 23, 2025 14:52
Use (void) to suppress output when loading libs
Remove unused ref file
Adjust ref files while in many tests libEvent library loading
not required and therefore extra output caused by loading not created
@linev linev force-pushed the roottest_exe_opts branch from fcfd04b to dd75ed8 Compare June 23, 2025 12:56
@linev linev requested a review from pcanal June 23, 2025 13:38
linev added 4 commits June 23, 2025 17:07
Use ROOTTEST_ADD_TEST to create and copy hsimple.root files
One can set fixtures and correctly organize dependencies

Copy ROOT files for runtreeCloneTest2.C directly,
let run test on Windows - where PRECMD may lead to test disabling

Use fixtures for dependnecies
It replaced by ARG_ROOTEXE_OPTS, which can be configured
individual for each test
Instead using RootExternalIncludes variable
one can just use ROOTEXE_OPTS which does the same
No need for special variable only for includes

Build library with ROOTTEST_GENERATE_DICTIONARY

Configure dependency with fixtures
@linev linev force-pushed the roottest_exe_opts branch from dd75ed8 to b20898c Compare June 23, 2025 15:08
linev added 2 commits June 23, 2025 18:26
Replaced by ROOTEXE_OPTS argument which
is individual for each test and does not interfere with other tests
@linev linev force-pushed the roottest_exe_opts branch from b20898c to 618747b Compare June 23, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants