#!/usr/bin/env python 

# Copy the grid to both a tiled and scanline version
imagedir = OIIO_TESTSUITE_IMAGEDIR
command += oiio_app("iconvert") + imagedir + "/grid.tif --scanline scanline.tif > out.txt ;" 
command += oiio_app("iconvert") + imagedir + "/grid.tif --tile 64 64 tiled.tif > out.txt ;" 

# Run the script 
command += pythonbin + " src/test_imageoutput.py > out.txt ;"

# compare the outputs -- these are custom because they compare to grid.tif
files = [ "grid-image.tif", "grid-scanline.tif", "grid-scanlines.tif",
          "grid-timage.tif", "grid-tile.tif", "grid-tiles.tif", "grid-half.exr" ]
for f in files :
    command += (oiio_app("idiff") + " -fail 0.001 -warn 0.001 "
                + f + " " + imagedir + "/grid.tif >> out.txt ;")

outputs = [ "multipart.exr", "out.txt" ]

