Skip to content
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 initial cpp unittests #128

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

gigony
Copy link
Contributor

@gigony gigony commented Oct 13, 2021

Update existing unit test code to use generated test image and allow external image specified by the parameter.

Updating run script to pre-generate the necessary test images and running C++ unit tests would be set up in a separate PR.

@gigony gigony added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Oct 13, 2021
@gigony gigony added this to the v21.10.01 milestone Oct 13, 2021
@gigony gigony self-assigned this Oct 13, 2021
@gigony gigony added this to PR-Needs review in v21.10.01 Release via automation Oct 13, 2021
@gigony gigony requested review from a team as code owners October 13, 2021 01:54
@quasiben
Copy link
Member

@gpucibot merge

Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

Thanks Gigon! 😄

Had a couple suggestions below

@@ -42,6 +43,38 @@ struct AppConfig
std::string benchmark_color; // {auto|true|false}
std::string benchmark_counters_tabular;
std::string v; // <verbosity>

std::string get_input_path(const char* default_value = "generated/tiff_stripe_4096x4096_256.tif") const
Copy link
Member

Choose a reason for hiding this comment

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

Should default_value be std::string? Similar lines below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Updated to const std::string

Comment on lines -24 to +25
std::string input_file = "test_data/private/generic_tiff_000.tif";
std::string test_folder;
std::string test_file;
Copy link
Member

Choose a reason for hiding this comment

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

We may want to revisit at some point and look at using std::filesystem::path. Though that requires C++17 and we were already using std::string. So just a future note

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!
Created a issue for following up:

v21.10.01 Release automation moved this from PR-Needs review to PR-Reviewer approved Nov 3, 2021
@jakirkham
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 334fc81 into rapidsai:branch-21.12 Nov 3, 2021
v21.10.01 Release automation moved this from PR-Reviewer approved to Done Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants