about summary refs log tree commit diff
path: root/test/mda-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-06-28 23:07:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-06-28 23:07:55 +0000
commit11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32 (patch)
tree7c40f096dd973943ef563ec87b2a68d8205db4fb /test/mda-roundtrip.test
parent89c6ec14eb7514630aea5abc4b90b51d1473d33a (diff)
downloadnetpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.tar.gz
netpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.tar.xz
netpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.zip
Promote Stable to Super_stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@3640 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/mda-roundtrip.test')
-rwxr-xr-xtest/mda-roundtrip.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/mda-roundtrip.test b/test/mda-roundtrip.test
new file mode 100755
index 00000000..58376f3f
--- /dev/null
+++ b/test/mda-roundtrip.test
@@ -0,0 +1,13 @@
+#! /bin/bash
+# This script tests: pbmtomda mdatopbm
+# Also requires: pbmmake pnmpad pamcut
+
+
+# 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