-
Notifications
You must be signed in to change notification settings - Fork 283
Update the test driver to share the reference data between the different compiler versions #556
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
Update the test driver to share the reference data between the different compiler versions #556
Conversation
Codecov Report
@@ Coverage Diff @@
## master #556 +/- ##
==========================================
- Coverage 95.73% 95.68% -0.05%
==========================================
Files 23 23
Lines 3213 3292 +79
Branches 603 609 +6
==========================================
+ Hits 3076 3150 +74
- Misses 66 69 +3
- Partials 71 73 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
This is a brilliant change that will make subsequent code reviews much easier! Thank you!
Aside from the inline comments – do you think it would be possible to add a small test that ensures that there are no duplicate reference files? I'm worried that one run with --generate_references
would restore the redundant files.
I'll add a function for cleanup the duplicate data after the test if the data was generated or updated. I've used this code temporary for removing the duplicates. |
3e96d77
to
8da7536
Compare
10794ea
to
31f7e5b
Compare
With other compiler versions the data is changed.
31f7e5b
to
7b1073b
Compare
…a_for_different_compiler_versions
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.
I think this code is fine for Unix/Linux, but I'm not sure if the handling of the Windows directories is done correctly in all cases. Could you take a look?
d95fd5c
to
ca3e264
Compare
ca3e264
to
00546b5
Compare
This updates the test driver to search the reference data backwards for the different compiler versions and uses the first matching file. With this we can see the differences between the compiler versions and need less files to update if a format chenges.