-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add regression tests for C++ sample programs #883
Conversation
Missed that one ... thanks for fixing! |
5b28d3c
to
2c52e64
Compare
Add optional command line arguments to the sample so that it can produce stable output.
Changes to the blessed output file are a result of updates to atomic weights, and to fixes for how flow devices are updated (Cantera#886)
Remove the existing cxx_ex test which duplicates this sample. Differences in blessed output are a result of updates to atomic weights in dc96fb5.
We have plenty of tests of the equilibrium solver for ideal gas mixtures, and the reaction path diagram test doesn't make a very good C++ example.
This is the same method used for profile comparisons in the Python test suite. These comparisons are skipped (with a warning) if Numpy is not installed.
Codecov Report
@@ Coverage Diff @@
## main #883 +/- ##
==========================================
+ Coverage 70.43% 70.95% +0.51%
==========================================
Files 375 376 +1
Lines 45688 45889 +201
==========================================
+ Hits 32180 32560 +380
+ Misses 13508 13329 -179
Continue to review full report at Codecov.
|
Rebasing this after merging #886 allows the tests to run reliably on all platforms, so I think this is ready now. |
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.
Looks good, just a few small things. This also means that we no longer need the "Build Samples" step in the CI, right? Since the samples will actually be run during scons test
now?
This provides the ability to organize data files included with Cantera and differentiate data which is useful for different purposes, e.g. sample data which is only meant to demonstrate capabilities and may not be physically meaningful. See Cantera/enhancements#22. Fixes Cantera#774
The samples are now built (and run) as part of `scons test`.
Correct. Just pushed a commit that removes these build steps. |
Similar to the tests added in #874 for the Fortran sample program, this PR adds tests for the C++ samples so they won't break without us knowing.
Changes proposed in this pull request
samples
folder #774)air.yaml
and use of that file in thecombustor.cpp
samplendim
tonewTransportMgr
which is currently ignored / unusedonedim.h
(diagnosed thanks to running thebvp
sample)Checklist
scons build
&scons test
) and unit tests address code coverageIf applicable, fill in the issue number this pull request is fixing
Fixes #774