-
Notifications
You must be signed in to change notification settings - Fork 129
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
[hadd] add tests for hadd argument parsing #1201
Open
silverweed
wants to merge
3
commits into
root-project:master
Choose a base branch
from
silverweed:hadd_argparse
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
hadd Target file: result.root | ||
hadd compression setting for all output: 101 | ||
Info in <hadd>: target file: result.root | ||
Info in <hadd>: compression setting for all output: 101 | ||
hadd Source file 1: hsimple14.root | ||
hadd Source file 2: hsimple20.root | ||
hadd Sources and Target have different compression settings | ||
Warning in <hadd>: Sources and Target have different compression settings | ||
hadd merging will be slower | ||
hadd Target path: result.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Info in <hadd>: target file: hadd_args_cachesize_out.root | ||
Info in <hadd>: Using cachesize=100M | ||
Info in <hadd>: compression setting for all output: 101 | ||
hadd Source file 1: hadd_args_in.root | ||
hadd Target path: hadd_args_cachesize_out.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Info in <hadd>: parallelizing with 2 processes. | ||
Info in <hadd>: target file: hadd_args_ff_dbg_j_2_out.root | ||
Info in <hadd>: compression setting for all output: 101 | ||
Info in <hadd>: each process should handle at least 3 files for efficiency. Setting the number of processes to: 1 | ||
hadd Source file 1: hadd_args_in.root | ||
hadd Source file 2: hadd_args_in.root | ||
hadd Target path: hadd_args_ff_dbg_j_2_out.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Info in <hadd>: target file: --hadd_args_out.root | ||
Info in <hadd>: compression setting for all output: 0 | ||
hadd Source file 1: hadd_args_in.root | ||
Warning in <hadd>: Sources and Target have different compression settings | ||
hadd merging will be slower | ||
hadd Target path: --hadd_args_out.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Info in <hadd>: target file: hadd_args_n0_out.root | ||
Info in <hadd>: compression setting for all output: 101 | ||
hadd Source file 1: hadd_args_in.root | ||
hadd Target path: hadd_args_n0_out.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Info in <hadd>: target file: hadd_args_n_1_out.root | ||
Info in <hadd>: compression setting for all output: 101 | ||
hadd Source file 1: hadd_args_in.root | ||
hadd Target path: hadd_args_n_1_out.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
hadd Target file: data_merge.root | ||
hadd compression setting for all output: 4 | ||
Info in <hadd>: target file: data_merge.root | ||
Info in <hadd>: compression setting for all output: 4 | ||
hadd Source file 1: data1.root | ||
hadd Source file 2: data2.root | ||
hadd Target path: data_merge.root:/ | ||
Info in <hadd>: target path: data_merge.root:/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
hadd Target file: data_merge.root | ||
hadd compression setting for all output: 101 | ||
Info in <hadd>: target file: data_merge.root | ||
Info in <hadd>: compression setting for all output: 101 | ||
hadd Source file 1: data1.root | ||
hadd Source file 2: data2.root | ||
hadd Target path: data_merge.root:/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test only verifies that the message printed by hadd are correct? If yes, should we add some (minimal) test that the file produces is as expected (minimal requirement: contains the object we expects).
Rather than a
POSTCMD
deleting the file, I recommend aPRECMD
(or not when we want to test that hadd complains about existing files). We may also want to keep the file after the end to have an opportunity to hand check the file.