Skip to content

Extend test code coverage and add missing python bindings - #305

Merged
cary-ilm merged 7 commits into
AcademySoftwareFoundation:mainfrom
cary-ilm:coverage1
Mar 17, 2023
Merged

cary-ilm merged 7 commits into
AcademySoftwareFoundation:mainfrom
cary-ilm:coverage1

Conversation

@cary-ilm

Copy link
Copy Markdown
Member
  • Add ImathHalfPerfTest as a test (it was built but not executed)
  • Box::isInfinite() tests
  • Box::affineTransform() tests with empty+infinite boxes
  • rgb2hsv/hsv2rgb
  • Add test code to python test for various matrix operators that were not covered
  • Matrix22 tests were commented out for some unknown reason.
  • In Matrix22 and Matrix33, the python bindings now call setScale(s)
    directly rather than calling setScale(Vec(s)). The behavior is the
    same, but this ensures the scalar version of the method gets test coverage.
  • In Matrix44:
    • Call setScale(s) in place of setScale(Vec(s)), same as above.
    • Similarly, call setShear(s) in place of setShear(Shear(s)). Same
      behavior, better test.
    • Add bindings for setEulerAngles() and setAxisAngles(), and
      associated tests. The test suite relies heavily on the bindings,
      so the bulk of the library testing is in python.

Cary Phillips added 6 commits February 28, 2023 22:27
- Add ImathHalfPerfTest as a test (it was built but not executed)
- Box<T>::isInfinite() tests
- Box<T>::affineTransform() tests with empty+infinite boxes
- rgb2hsv/hsv2rgb

Signed-off-by: Cary Phillips <cary@ilm.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
- Add test code to python test for various operators that were not covered

- In Matrix22 and Matrix33, the python bindings now call setScale(s)
  directly rather than calling setScale(Vec(s)). The behavior is the
  same, but this ensures the scalar version of the method gets test coverage.

- In Matrix44:

  * Call setScale(s) in place of setScale(Vec(s)), same as above.

  * Similarly, call setShear(s) in place of setShear(Shear(s)). Same
    behavior, better test.

  * Add bindings for setEulerAngles() and setAxisAngles(), and
    associated tests.

Signed-off-by: Cary Phillips <cary@ilm.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
@cary-ilm
cary-ilm merged commit 9d3d867 into AcademySoftwareFoundation:main Mar 17, 2023
cary-ilm pushed a commit to cary-ilm/Imath that referenced this pull request May 19, 2023
…twareFoundation#305)

* Extend test suite coverage

- Add ImathHalfPerfTest as a test (it was built but not executed)
- Box<T>::isInfinite() tests
- Box<T>::affineTransform() tests with empty+infinite boxes
- rgb2hsv/hsv2rgb

Signed-off-by: Cary Phillips <cary@ilm.com>

* typo

Signed-off-by: Cary Phillips <cary@ilm.com>

* typo AcademySoftwareFoundation#2

Signed-off-by: Cary Phillips <cary@ilm.com>

* Extend test coverage of matrix classes

- Add test code to python test for various operators that were not covered

- In Matrix22 and Matrix33, the python bindings now call setScale(s)
  directly rather than calling setScale(Vec(s)). The behavior is the
  same, but this ensures the scalar version of the method gets test coverage.

- In Matrix44:

  * Call setScale(s) in place of setScale(Vec(s)), same as above.

  * Similarly, call setShear(s) in place of setShear(Shear(s)). Same
    behavior, better test.

  * Add bindings for setEulerAngles() and setAxisAngles(), and
    associated tests.

Signed-off-by: Cary Phillips <cary@ilm.com>

* remove commented-out line

Signed-off-by: Cary Phillips <cary@ilm.com>

* include <sstream>

Signed-off-by: Cary Phillips <cary@ilm.com>

* Imath.half_perf_test

Signed-off-by: Cary Phillips <cary@ilm.com>

---------

Signed-off-by: Cary Phillips <cary@ilm.com>
cary-ilm pushed a commit that referenced this pull request May 21, 2023
* Extend test suite coverage

- Add ImathHalfPerfTest as a test (it was built but not executed)
- Box<T>::isInfinite() tests
- Box<T>::affineTransform() tests with empty+infinite boxes
- rgb2hsv/hsv2rgb

Signed-off-by: Cary Phillips <cary@ilm.com>

* typo

Signed-off-by: Cary Phillips <cary@ilm.com>

* typo #2

Signed-off-by: Cary Phillips <cary@ilm.com>

* Extend test coverage of matrix classes

- Add test code to python test for various operators that were not covered

- In Matrix22 and Matrix33, the python bindings now call setScale(s)
  directly rather than calling setScale(Vec(s)). The behavior is the
  same, but this ensures the scalar version of the method gets test coverage.

- In Matrix44:

  * Call setScale(s) in place of setScale(Vec(s)), same as above.

  * Similarly, call setShear(s) in place of setShear(Shear(s)). Same
    behavior, better test.

  * Add bindings for setEulerAngles() and setAxisAngles(), and
    associated tests.

Signed-off-by: Cary Phillips <cary@ilm.com>

* remove commented-out line

Signed-off-by: Cary Phillips <cary@ilm.com>

* include <sstream>

Signed-off-by: Cary Phillips <cary@ilm.com>

* Imath.half_perf_test

Signed-off-by: Cary Phillips <cary@ilm.com>

---------

Signed-off-by: Cary Phillips <cary@ilm.com>
cary-ilm pushed a commit that referenced this pull request May 31, 2023
This alters the ABI in what should be a patch release.

Signed-off-by: Cary Phillips <cary@ilm.com>
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Jun 6, 2023
## Version 3.1.9 (May 31, 2023)

Patch release that fixes an correct .so version number introduced in
v3.1.8. All Imath library functionality is compatible with v3.1.8.

This release also reverts
[#305](AcademySoftwareFoundation/Imath#305),
which inadvertently introduced additional python bindings in v3.1.8
that altered the ABI of ``libPyImath``. ``libPyImath`` is now
ABI-compatible with v3.1.7 and previous releases.
msk pushed a commit to msk/pkgsrc that referenced this pull request May 11, 2026
## Version 3.1.9 (May 31, 2023)

Patch release that fixes an correct .so version number introduced in
v3.1.8. All Imath library functionality is compatible with v3.1.8.

This release also reverts
[#305](AcademySoftwareFoundation/Imath#305),
which inadvertently introduced additional python bindings in v3.1.8
that altered the ABI of ``libPyImath``. ``libPyImath`` is now
ABI-compatible with v3.1.7 and previous releases.
jperkin pushed a commit to TritonDataCenter/pkgsrc that referenced this pull request May 14, 2026
## Version 3.1.9 (May 31, 2023)

Patch release that fixes an correct .so version number introduced in
v3.1.8. All Imath library functionality is compatible with v3.1.8.

This release also reverts
[#305](AcademySoftwareFoundation/Imath#305),
which inadvertently introduced additional python bindings in v3.1.8
that altered the ABI of ``libPyImath``. ``libPyImath`` is now
ABI-compatible with v3.1.7 and previous releases.
tsutsui pushed a commit to tsutsui/pkgsrc that referenced this pull request Oct 17, 2026
## Version 3.1.9 (May 31, 2023)

Patch release that fixes an correct .so version number introduced in
v3.1.8. All Imath library functionality is compatible with v3.1.8.

This release also reverts
[#305](AcademySoftwareFoundation/Imath#305),
which inadvertently introduced additional python bindings in v3.1.8
that altered the ABI of ``libPyImath``. ``libPyImath`` is now
ABI-compatible with v3.1.7 and previous releases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants