Conversation
… CMake to use cpp 17.
…n on the powertower sample
…o see how it runs
google-tests/soltrace_example_tests/st_powertower_sim_run_noopt_test.cpp
Outdated
Show resolved
Hide resolved
|
Why does actions only show 1 test? and why does it not use the test names? |
Looks like this is because all tests are being compiled into a single executable. The ctest command has a verbose flag -VV, I'll add that to the github workflow file so it will print all outputs. |
qualand
left a comment
There was a problem hiding this comment.
Thanks for putting this together! Please see my comments and we can discuss tomorrow.
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
google-tests/soltrace_example_tests/st_powertower_sim_run_opt_test.cpp
Outdated
Show resolved
Hide resolved
|
Can you remove all the extra outputs in the tests? |
qualand
left a comment
There was a problem hiding this comment.
Please address the couple of comments and we should be good to go!
google-tests/csv_tools/split_csv.h
Outdated
| #include <cstring> | ||
| #include <vector> | ||
| #include <exception> | ||
| #include <cstdlib> |
There was a problem hiding this comment.
can you remove all unneeded libraries?
|
|
||
| TEST(st_hfsf_sim_run_opt_test, BasicAssertions) | ||
| { | ||
| string project_dir = PROJECT_DIR; |
|
|
||
| TEST(st_powertower_sim_run_noopt_test, BasicAssertions) | ||
| { | ||
| string project_dir = PROJECT_DIR; |
|
|
||
| TEST(st_powertower_sim_run_opt_test, BasicAssertions) | ||
| { | ||
| string project_dir = PROJECT_DIR; |
qualand
left a comment
There was a problem hiding this comment.
Sorry, I just saw gtest's guidance on this. Feel free use or change my suggestions.
|
|
||
| using namespace std; | ||
|
|
||
| TEST(st_hfsf_sim_run_opt_test, BasicAssertions) |
There was a problem hiding this comment.
Can you remove all underscores from all test suite names and test names?
See gtest FAQ: https://google.github.io/googletest/faq.html
| TEST(st_hfsf_sim_run_opt_test, BasicAssertions) | |
| TEST(HighFluxSolarFurnace, RaysTraced1e5OpticalErrorsOff) |
|
|
||
| using namespace std; | ||
|
|
||
| TEST(st_powertower_sim_run_noopt_test, BasicAssertions) |
There was a problem hiding this comment.
| TEST(st_powertower_sim_run_noopt_test, BasicAssertions) | |
| TEST(PowerTowerSurroundSingleFacet, RaysTraced5e5NoOpticalErrors) |
|
|
||
| using namespace std; | ||
|
|
||
| TEST(st_powertower_sim_run_opt_test, BasicAssertions) |
There was a problem hiding this comment.
| TEST(st_powertower_sim_run_opt_test, BasicAssertions) | |
| TEST(PowerTowerSurroundSingleFacet, RaysTraced5e5NoOpticalErrorsPowTowerOptOn) |
| @@ -25,32 +14,23 @@ double roundToDecimalPlaces(double value, int decimalPlaces) { | |||
|
|
|||
| TEST(st_sim_run_test, BasicAssertions) | |||
There was a problem hiding this comment.
| TEST(st_sim_run_test, BasicAssertions) | |
| TEST(ApertureExamples, SingleRayNoOpticalErrors) |
|
|
||
| using namespace std; | ||
|
|
||
| TEST(st_hfsf_sim_run_opt_test, BasicAssertions) |
There was a problem hiding this comment.
I think you missed this test for renaming.
There was a problem hiding this comment.
Agh, I didn't add the change during last commit. Fixed shortly
Merging new tests into base repo. These include:
st_hfsf_sim_run_test.cpp - high flux solar furnace sample
st_parabola_sim_run_test.cpp - parabola sample (doesn't work and is commented out)
st_powertower_sim_run_noopt_test.cpp - powertower sample with no optimization
st_powertower_sim_run_opt_test.cpp - powertower sample with optimization