diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-26 02:53:02 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-26 02:53:02 +0000 |
commit | b117a415aaf58c435805243a930e833f8cf62421 (patch) | |
tree | ca6cda4c24d37737a3942e534b95006bcd566c5a /test/pnmquantall.test | |
parent | 34bb24c566c9d9fe3c4ae71fc4c6b53323fb1dd9 (diff) | |
download | netpbm-mirror-b117a415aaf58c435805243a930e833f8cf62421.tar.gz netpbm-mirror-b117a415aaf58c435805243a930e833f8cf62421.tar.xz netpbm-mirror-b117a415aaf58c435805243a930e833f8cf62421.zip |
Promote trunk (10.90.00) to advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3784 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pnmquantall.test')
-rwxr-xr-x | test/pnmquantall.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/pnmquantall.test b/test/pnmquantall.test index b735b623..4c1bb77f 100755 --- a/test/pnmquantall.test +++ b/test/pnmquantall.test @@ -24,4 +24,24 @@ done pnmcat ${test_red} ${test_grn} ${test_blu} -tb | \ pgmhist -m | awk '$2>0 {s++}; END { print (s<=20) }' + +tmpdir=${tmpdir:-/tmp} +test_out=${tmpdir}/test_out + +echo 1>&2 +echo "Invalid command-line argument combinations." 1>&2 +echo "Error messages should appear below the line." 1>&2 +echo "-----------------------------------------------------------" 1>&2 + +pnmquantall -ext xx 0 ${test_red} ${test_grn} ${test_blu} || \ + echo "Expected failure 1" +rm ${test_red}xx ${test_grn}xx ${test_blu}xx || \ + echo "Expected failure 1.rm" +pnmquantall -ext xx 1 ${test_red} ${test_grn} ${test_blu} || \ + echo "Expected failure 2" +rm ${test_red}xx ${test_grn}xx ${test_blu}xx || \ + echo "Expected failure 2.rm" +pnmquantall -ext xx 2 || \ + echo "Expected failure 3" + rm ${test_red} ${test_grn} ${test_blu} ${test_ppm} \ No newline at end of file |