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

HYDRA-834 : Add support for text-based data source dump comparisons in tests #88

Merged
merged 16 commits into from
Jun 3, 2024

Conversation

debloip-adsk
Copy link
Collaborator

This PR allows us to compare data sources dumped with HdDebugPrintDataSource in C++ tests. The printing of floats and doubles can be configured if the USD build used supports it, which allows us to print them with a certain precision and deal with floating point discrepancies between platforms. The compile definition CONFIGURABLE_DECIMAL_STREAMING_AVAILABLE indicates whether support for configurable float/double streaming is available.

Bundled with this PR is a test for some of the NURBS primitives, which while already tested using image diffing by #54, is the test that originally exposed the floating-point printing issue. This allows us to both test the changes to support data source comparison and make sure we successfully handle the original issue.

@debloip-adsk debloip-adsk marked this pull request as ready for review May 31, 2024 21:08
@debloip-adsk debloip-adsk self-assigned this May 31, 2024
@debloip-adsk
Copy link
Collaborator Author

@debloip-adsk debloip-adsk added ready-for-merge Development process is finished, PR is ready for merge test labels Jun 3, 2024
@roopavr-adsk roopavr-adsk merged commit 3e52cb4 into dev Jun 3, 2024
10 checks passed
@roopavr-adsk roopavr-adsk deleted the debloip/HYDRA-834/data-source-comparisons branch June 3, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants