about summary refs log tree commit diff
path: root/test/mgr-roundtrip.test
blob: d96d836ddc693ab47dede2e9789525d9d72ac667 (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 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