diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-27 17:33:56 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-27 17:33:56 +0000 |
commit | 6e629f983aa205c3eaa5f339f1c71bb5e7938049 (patch) | |
tree | a89f594443ac2330138f0bd0f19ee59135c2213f /test/mda-roundtrip.test | |
parent | ec52f41aabc9de9aac203c2f462252e403c7374a (diff) | |
download | netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.tar.gz netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.tar.xz netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.zip |
Promote Development to Advanced to make Release 10.97.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4222 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/mda-roundtrip.test')
-rwxr-xr-x | test/mda-roundtrip.test | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/mda-roundtrip.test b/test/mda-roundtrip.test index 58376f3f..6b4d89b9 100755 --- a/test/mda-roundtrip.test +++ b/test/mda-roundtrip.test @@ -1,13 +1,15 @@ #! /bin/bash # This script tests: pbmtomda mdatopbm -# Also requires: pbmmake pnmpad pamcut +# Also requires: pbmmake pnmpad pamcut pamfile # Pbmtomda requires input width and height to be multiples of 8. -# Test 1. Should print 1757803444 169 +echo "Test 1. Should print 1757803444 169 twice" +pbmmake -g 32 40 | cksum pbmmake -g 32 40 | pbmtomda | mdatopbm | cksum -# Test 2. Should print 2425386270 41 -pnmpad -right 2 testgrid.pbm | \ - pbmtomda | mdatopbm | pamcut 0 0 14 16 | cksum +echo "Test 2. Should print 281226646 481" +size=$(pamfile -size maze.pbm | awk '{print "-width="$1,"-height="$2}') +pnmpad -mwidth=8 -halign=0 -mheight=8 -valign=0 ${size} maze.pbm | \ + pbmtomda | mdatopbm | pamcut -left=0 -top=0 ${size} | cksum |