Skip to content

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 requested review from jakirkham and quasiben October 13, 2021 01:54
@gigony gigony self-assigned this 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

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:

@jakirkham
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 334fc81 into rapidsai:branch-21.12 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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants