Skip to content

Commit 964dcf2

Browse files
committed
testing: at long last, set up a softimage reading test
Signed-off-by: Larry Gritz <[email protected]>
1 parent 671aac0 commit 964dcf2

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

src/cmake/testing.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ macro (oiio_add_all_tests)
332332
oiio_add_tests (sgi
333333
ENABLEVAR ENABLE_SGI
334334
IMAGEDIR oiio-images)
335+
oiio_add_tests (softimage
336+
ENABLEVAR ENABLE_SOFTIMAGE
337+
IMAGEDIR oiio-images)
335338
oiio_add_tests (targa
336339
ENABLEVAR ENABLE_TARGA
337340
IMAGEDIR oiio-images)
14.2 KB
Binary file not shown.

testsuite/softimage/ref/out.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Reading data/data/fisheye.pic
2+
data/data/fisheye.pic : 75 x 75, 4 channel, uint8 softimage
3+
SHA-1: 3A3D307729BEDC0855302F3FD2846A6477887E61
4+
channel list: R, G, B, A
5+
BitsPerSample: 8
6+
ImageDescription: "Written by mental images libimg"
7+
Stats Min: 0 0 0 0 (of 255)
8+
Stats Max: 237 249 237 255 (of 255)
9+
Stats Avg: 137.64 58.72 26.04 200.10 (of 255)
10+
Stats StdDev: 92.44 56.97 40.52 103.14 (of 255)
11+
Stats NanCount: 0 0 0 0
12+
Stats InfCount: 0 0 0 0
13+
Stats FiniteCount: 5625 5625 5625 5625
14+
Constant: No
15+
Monochrome: No

testsuite/softimage/run.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python
2+
3+
# Copyright Contributors to the OpenImageIO project.
4+
# SPDX-License-Identifier: Apache-2.0
5+
# https://github.com/AcademySoftwareFoundation/OpenImageIO
6+
7+
8+
command += info_command ("data/data/fisheye.pic", extraargs="--stats")
9+

0 commit comments

Comments
 (0)