diff options
Diffstat (limited to 'test/mgr-roundtrip.test')
-rwxr-xr-x | test/mgr-roundtrip.test | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/mgr-roundtrip.test b/test/mgr-roundtrip.test index 252ae996..9fb6211c 100755 --- a/test/mgr-roundtrip.test +++ b/test/mgr-roundtrip.test @@ -1,7 +1,15 @@ -#! /bin/bash +#! /bin/sh # This script tests: pbmtomgr mgrtopbm -# Also requires: +# 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 -# Should print 2425386270 41, cksum of testgrid.pbm -pbmtomgr testgrid.pbm | mgrtopbm | cksum |