about summary refs log tree commit diff
path: root/test/mda-roundtrip.test
blob: 58376f3f857cc3ecdd920ea287a0cb64ac61f4da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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