diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-09-26 16:03:01 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-09-26 16:03:01 +0000 |
commit | 67e1689f9d7e6b8dfffe393f2d318e3e374c7a36 (patch) | |
tree | 5943a3e98e1f12ed80d92e2cb8c5623d8af9fcd3 /test/mda-roundtrip.test | |
parent | fd6e24ededb4ee1e92e101ea50fe21d88630c17f (diff) | |
download | netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.gz netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.xz netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.zip |
Promote current development as Release 10.68
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2294 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/mda-roundtrip.test')
-rwxr-xr-x | test/mda-roundtrip.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/mda-roundtrip.test b/test/mda-roundtrip.test new file mode 100755 index 00000000..3bde61ee --- /dev/null +++ b/test/mda-roundtrip.test @@ -0,0 +1,19 @@ +#! /bin/bash +# This script tests: pbmtomda mdatopbm +# Also requires: pbmmake pnmpad pamcut + + alias pbmtomda="${PBM_TESTPREFIX}pbmtomda" + alias mdatopbm="${PBM_TESTPREFIX}mdatopbm" + alias pbmmake="${PBM_BINPREFIX}pbmmake" + alias pnmpad="${PBM_BINPREFIX}pnmpad" + alias pamcut="${PBM_BINPREFIX}pamcut" + shopt -s expand_aliases + +# Pbmtomda requires input width and height to be multiples of 8. + +# Test 1. Should print 1757803444 169 +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 |