Skip to content

Commit ff4a149

Browse files
committed
test: add test case for oiiotool --layersplit command
Signed-off-by: Loïc Vital <[email protected]>
1 parent 1c65854 commit ff4a149

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

src/cmake/testing.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ macro (oiio_add_all_tests)
141141
oiiotool-copy
142142
oiiotool-demosaic
143143
oiiotool-fixnan
144+
oiiotool-layers
144145
oiiotool-pattern
145146
oiiotool-readerror
146147
oiiotool-subimage
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing "parts.exr" and "ref/parts.exr"
2+
PASS
1.65 KB
Binary file not shown.

testsuite/oiiotool-layers/run.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
# Test for oiiotool channel-name-based layer splitting
9+
#
10+
11+
12+
# test --layersplit
13+
command += oiiotool ("src/layers.exr --layersplit --siappendall -o parts.exr")
14+
15+
# Outputs to check against references
16+
outputs = [ "parts.exr", "out.txt" ]
17+
672 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)