diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-06-30 19:38:50 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-06-30 19:38:50 +0000 |
commit | ffa495eb1f02bfc0e5f83a17e917e8709ec41356 (patch) | |
tree | 509aee1a7696e401ad791c39f9a4fab440b180c9 /test/ppmpat.test | |
parent | aa813fa24371ead6a50fed6080fe82f8ccc7f491 (diff) | |
download | netpbm-mirror-ffa495eb1f02bfc0e5f83a17e917e8709ec41356.tar.gz netpbm-mirror-ffa495eb1f02bfc0e5f83a17e917e8709ec41356.tar.xz netpbm-mirror-ffa495eb1f02bfc0e5f83a17e917e8709ec41356.zip |
Release 10.95.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4119 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/ppmpat.test')
-rwxr-xr-x | test/ppmpat.test | 134 |
1 files changed, 102 insertions, 32 deletions
diff --git a/test/ppmpat.test b/test/ppmpat.test index 0a6127ca..88fb9fdd 100755 --- a/test/ppmpat.test +++ b/test/ppmpat.test @@ -38,70 +38,140 @@ echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 ppmpat -g2 -g3 10 10 > ${test_out} || \ - echo -n "Expected failure 1"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 1" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -madras -tartan 10 10 > ${test_out} || \ - echo -n "Expected failure 2"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 2" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -poles -squig 10 10 > ${test_out} || \ - echo -n "Expected failure 3"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 3" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -camo -anticamo 10 10 > ${test_out} || \ - echo -n "Expected failure 4"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 4" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -argyle1 -argyle2 10 10 > ${test_out} || \ - echo -n "Expected failure 5"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 5" + test -s ${test_out}; echo " "$? + rm -f {test_out} ppmpat 10 10 > ${test_out} || \ - echo -n "Expected failure 6"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 6" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -g2 10 > ${test_out} || \ - echo -n "Expected failure 7"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 7" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -g2 10 10 10 > ${test_out} || \ - echo -n "Expected failure 8"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 8" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -g2 10 > ${test_out} || \ - echo -n "Expected failure 9"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 9" + test -s ${test_out}; echo " "$? + rm -f {test_out} clist1="-color=rgb:00/00/00" clist2="-color=rgb:00/00/00,rgb:00/00/ff" clist3="-color=rgb:00/00/00,rgb:00/00/ff,rgb:00/ff/ff" clist4="-color=rgb:00/00/00,rgb:00/00/ff,rgb:00/ff/ff,rgb:ff/ff/ff" -# These patterns require exactly 2 colors +# These patterns require exactly 2 colors ppmpat -gingham2 ${clist1} 10 10 > ${test_out} || \ - echo -n "Expected failure 10"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 10" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -argyle1 ${clist1} 10 10 > ${test_out} || \ - echo -n "Expected failure 11"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 11" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -gingham2 ${clist3} 10 10 > ${test_out} || \ - echo -n "Expected failure 12"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 12" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -argyle1 ${clist3} 10 10 > ${test_out} || \ - echo -n "Expected failure 13"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 13" + test -s ${test_out}; echo " "$? + rm -f {test_out} -# These require exactly 3 colors +# These require exactly 3 colors ppmpat -gingham3 ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 14"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 14" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -argyle2 ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 15"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 15" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -madras ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 16"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 16" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -tartan ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 17"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 17" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -gingham3 ${clist4} 10 10 > ${test_out} || \ - echo -n "Expected failure 18"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 18" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -argyle2 ${clist4} 10 10 > ${test_out} || \ - echo -n "Expected failure 19"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 19" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -madras ${clist4} 10 10 > ${test_out} || \ - echo -n "Expected failure 20"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 20" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -tartan ${clist4} 10 10 > ${test_out} || \ - echo -n "Expected failure 21"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 21" + test -s ${test_out}; echo " "$? + rm -f {test_out} -# These require at least 3 colors +# These require at least 3 colors ppmpat -squig ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 22"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 22" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -camo ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 23"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 23" + test -s ${test_out}; echo " "$? + rm -f {test_out} + ppmpat -anticamo ${clist2} 10 10 > ${test_out} || \ - echo -n "Expected failure 24"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 24" + test -s ${test_out}; echo " "$? + rm -f {test_out} -# The squig pattern has an aspect ratio restriction +# The squig pattern has an aspect ratio restriction ppmpat -squig ${clist3} 10 250 > ${test_out} || \ - echo -n "Expected failure 25"; test -s ${test_out}; echo " "$? -ppmpat -squig ${clist3} 500 20 > ${test_out} || \ - echo -n "Expected failure 26"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 25" + test -s ${test_out}; echo " "$? + rm -f {test_out} -rm ${test_out} +ppmpat -squig ${clist3} 500 20 > ${test_out} || \ + echo -n "Expected failure 26" + test -s ${test_out}; echo " "$? + rm -f {test_out} |