#! /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

