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

oiiotool: Add unit tests, minor internals utility refactoring #3616

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 19, 2022

Add a hidden --unittest command to oiiotool, only functional for Debug builds, which enables additional testing of internal utility funcions and other things that are difficult to fully exercise in the testsuite from normal oiiotool commands (could be done, but would take tons of additional tests to get into particular deep edge cases).

Prototype by adding unit tests for scan_box. More will be added later now that the mechanism exists.

Simplify string_to_dataformat

Make sure to use --list-formats and --runstats during testing.

Add a hidden --unittest command to oiiotool, only functional for Debug
builds, which enables additional testing of internal utility funcions
and other things that are difficult to fully exercise in the testsuite
from normal oiiotool commands (could be done, but would take tons of
additional tests to get into particular deep edge cases).

Prototype by adding unit tests for scan_box. More will be added later
now that the mechanism exists.

Simplify string_to_dataformat

Make sure to use --list-formats and --runstats during testing.
@lgritz lgritz merged commit 90dfdb1 into AcademySoftwareFoundation:master Oct 19, 2022
@lgritz lgritz deleted the lg-oiiotoolunittest branch October 19, 2022 20:05
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Oct 19, 2022
…ySoftwareFoundation#3616)

Add a hidden --unittest command to oiiotool, only functional for Debug
builds, which enables additional testing of internal utility funcions
and other things that are difficult to fully exercise in the testsuite
from normal oiiotool commands (could be done, but would take tons of
additional tests to get into particular deep edge cases).

Prototype by adding unit tests for scan_box. More will be added later
now that the mechanism exists.

Simplify string_to_dataformat

Make sure to use --list-formats and --runstats during testing.
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.

1 participant