blob: 97ac1be73b2d019bac8b4bf5cc25b3da8c8643eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#! /bin/sh
# This script tests: pbmtoatk atktopbm
# Also requires: pbmmake
echo "Test 1. Should print 281226646 481"
# cksum of maze.pbm
pbmtoatk maze.pbm | atktopbm | cksum
tmpdir=${tmpdir:-/tmp}
maxwidth_pbm=${tmpdir}/maxwidth.pbm
maxheight_pbm=${tmpdir}/maxheight.pbm
echo \
"Test 2. Should print 1824220442 125013 twice, then 2146497872 1000013 twice"
pbmmake -g 1000000 1 | tee ${maxwidth_pbm} | cksum
pbmtoatk ${maxwidth_pbm} | atktopbm | cksum
pbmmake -b 1 1000000 | tee ${maxheight_pbm} | cksum
pbmtoatk ${maxheight_pbm} | atktopbm | cksum
rm ${maxwidth_pbm} ${maxheight_pbm}
|