Skip to content

Drop Generate_Exe_Script, and GENERATE_TEST_SCRIPT #1110

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

Merged
merged 4 commits into from
Sep 28, 2021

Conversation

ChristianTackeGSI
Copy link
Member

@ChristianTackeGSI ChristianTackeGSI commented Sep 24, 2021

Both are not used inside FairRoot.

Generate_Exe_Script was never meant for external usage (it expects users to copy a template into a local fixed path).

GENERATE_TEST_SCRIPT can be replaced by much simpler, and more flexible local code by users.

See also: #1109


Checklist:

Copy link
Member

@dennisklein dennisklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, looks good, see one minor inline comment.

Export a variable `FairRoot_BINDIR` containing the full
path of `/bin`.

Drop `PROJECT_INSTALL_BINDIR`, it was never used.
Install `FairRootConfig.*sh` into CMAKE_INSTALL_BINDIR
instead of directly into `bin`.

Move `check_system.*` to CMAKE_INSTALL_LIBEXECDIR.
Both are not used inside FairRoot.

`Generate_Exe_Script` was never meant for external usage
(it expects users to copy a template into a local fixed
path).

`GENERATE_TEST_SCRIPT` can be replaced by much simpler, and
more flexible local code by users.
@dennisklein
Copy link
Member

dennisklein commented Sep 27, 2021

https://cdash.gsi.de/viewTest.php?onlyfailed&buildid=293423 They failed two times in a row (but not on the last build of the dev branch 3 days ago). Can you check, if this is related to this PR?

@ChristianTackeGSI
Copy link
Member Author

https://cdash.gsi.de/viewTest.php?onlyfailed&buildid=293423 They failed two times in a row (but not on the last build of the dev branch 3 days ago). Can you check, if this is related to this PR?

I have added a commit to catch the segmentation fault.

But really, I think, this was not relalted to this change.

I will try to look into proper "fixture" setup for these tests.

dennisklein
dennisklein previously approved these changes Sep 28, 2021
Many member functions in `FairParRootFile` do not handle
the case of the RootFile member variable being a nullptr.

Handle the most important ones.
@dennisklein dennisklein merged commit cacf353 into FairRootGroup:dev Sep 28, 2021
@ChristianTackeGSI ChristianTackeGSI deleted the pr/drop_exe_script branch September 28, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants