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

Testing: test both openexr old and core versions #3604

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 16, 2022

On any one platform, our testsuite was only testing the old C++ or the new C core exr implementations.

Rig it to run the openexr-oriented tests twice -- once in each state (when using OpenEXR new enough to support the core library).

Doing this cleanly required adding SUFFIX and ENVIRONMENT optional parameters to the oiio_add_tests utility macro. Once that was added, the texture batch testing could be implemented that way as well, removing a bunch of hackier special purpose code.

On any one platform, our testsuite was only testing the old C++ and
the new C core exr implementations.

Rig it to run the openexr-oriented tests twice -- once in each state
(when using OpenEXR new enough to support the core library).

Doing this cleanly required adding SUFFIX and ENVIRONMENT optional
parameters to the oiio_add_tests utility macro. Once that was added,
the texture batch testing could be implemented that way as well,
removing a bunch of hackier special purpose code.
@lgritz lgritz merged commit 7a51025 into AcademySoftwareFoundation:master Oct 17, 2022
@lgritz lgritz deleted the lg-exrtest branch October 17, 2022 02:28
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Oct 17, 2022
…dation#3604)

On any one platform, our testsuite was only testing the old C++ and
the new C core exr implementations.

Rig it to run the openexr-oriented tests twice -- once in each state
(when using OpenEXR new enough to support the core library).

Doing this cleanly required adding SUFFIX and ENVIRONMENT optional
parameters to the oiio_add_tests utility macro. Once that was added,
the texture batch testing could be implemented that way as well,
removing a bunch of hackier special purpose code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant