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

echo "Test 1.  Should print 281226646 481"
pbmtomgr maze.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