diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-13 00:08:51 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-13 00:08:51 +0000 |
commit | a5d06d531c80a96a4041f8f19bdf89b847f71e80 (patch) | |
tree | ae8dafc409a0d8a88edae4fcec8b00298f3a8835 /test/pamchannel.test | |
parent | b62eff9e0c76dcdab094bf9fe32355c543ea909f (diff) | |
download | netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.tar.gz netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.tar.xz netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.zip |
miscellaneous test updates
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4201 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamchannel.test')
-rwxr-xr-x | test/pamchannel.test | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/test/pamchannel.test b/test/pamchannel.test index 6bb0cf67..bce1d4eb 100755 --- a/test/pamchannel.test +++ b/test/pamchannel.test @@ -12,27 +12,23 @@ # 3164158573 33838 testimg.blu -# Test 1. red channel -# Should produce 1571496937 33838 -echo "Test 1" - +echo "Test 1:red-channel Should produce 1571496937 33838" pamchannel -infile testimg.ppm 0 | \ pamtopnm --assume | cksum -# Test 2. green channel -# Should produce 394856971 33838 -echo "Test 2" - +echo "Test 2:green-channel Should produce 394856971 33838" pamchannel -infile testimg.ppm -tupletype="GRAYSCALE" 1 | \ pamtopnm | cksum -# Test 3. blue channel -# Should produce 3164158573 33838 -echo "Test 3" +echo "Test 3:blue-channel Should produce 3164158573 33838" pamchannel -infile testimg.ppm 2 | \ pamtopnm --assume | cksum +echo "Test 4:single-channel Should produce 281226646 481" +pamchannel -infile maze.pbm 0 | \ + pamtopnm --assume | cksum + # Test invalid: specified channel does not exist echo 1>&2 @@ -48,14 +44,15 @@ echo "Test Invalid" pamchannel -infile testgrid.pbm 1 > ${test_out} || \ echo -n "Expected failure 1" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pamchannel -infile testimg.ppm 3 > ${test_out} || \ echo -n "Expected failure 2" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pamtopam testimg.ppm | pamchannel -infile=- 4 > ${test_out} || \ echo -n "Expected failure 3" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} + |