about summary refs log tree commit diff
path: root/test/mgr-roundtrip.test
blob: 7ca2ff3d1c08a70bdec4b28a4afa524b7078b1c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash
# This script tests: pbmtomgr mgrtopbm
# Also requires: pbmmake

echo "Test 1.  Should print 2425386270 41"
pbmtomgr testgrid.pbm | mgrtopbm | cksum

echo "Test 2.  Should print 429369764 1034, 448060073 4105 twice each"
# Maximum width and height allowed

pbmmake -g 4095 2 | cksum
pbmmake -g 4095 2 | pbmtomgr | mgrtopbm | cksum
pbmmake -g 1 4095 | cksum
pbmmake -g 1 4095 | pbmtomgr | mgrtopbm | cksum