diff options
Diffstat (limited to 'test/pamhue.test')
-rwxr-xr-x | test/pamhue.test | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/test/pamhue.test b/test/pamhue.test index d81a0acb..ce148a45 100755 --- a/test/pamhue.test +++ b/test/pamhue.test @@ -16,11 +16,11 @@ pamseq -tupletype=RGB 3 1 | pamdepth 255 | pamhue -huechange=60 | \ echo "Test 3" # pamhue has no effect on monotone images -# Should print 2425386270 41 twice +# Should print 281226646 481 twice -pamhue -huechange=45 testgrid.pbm | cmp -s - testgrid.pbm +pamhue -huechange=45 maze.pbm | cmp -s - maze.pbm echo ${PIPESTATUS[@]} ":" $? -pamhue -huechange=180 testgrid.pbm | cmp -s - testgrid.pbm +pamhue -huechange=180 maze.pbm | cmp -s - maze.pbm echo ${PIPESTATUS[@]} ":" $? echo "Test 4" @@ -34,15 +34,6 @@ pamhue -huechange=360 testimg.ppm | cmp -s - testimg.ppm echo "Test Invalid" -tmpdir=${tmpdir:-/tmp} -test_out=${tmpdir}/test_out +. ${srcdir}/test-invalid.inc -echo 1>&2 -echo "Omission of mandatory argument." 1>&2 -echo "An error message should appear below the line." 1>&2 -echo "-----------------------------------------------------------" 1>&2 - -pamhue testimg.ppm > ${test_out} || \ - echo -n "Expected failure 1"; test -s ${test_out}; echo " "$? - -rm -f ${test_out} +invCmd "pamhue testimg.ppm " |