blob: 8b9c29e11811fc76eef0e8822377a75550cb3ab0 (
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
24
25
26
27
28
29
30
31
32
33
34
|
#! /bin/sh
# This script tests: pbmtog3
# Also requires: pbmmake
echo "Test 1. Should print 2156383714 1106"
pbmtog3 maze.pbm | cksum
echo "Test 2. Should print 162371073 1049"
pbmtog3 -nofixedwidth maze.pbm | cksum
echo "Test 3. Should print 750267045 1106"
pbmtog3 -reverse maze.pbm | cksum
echo "Test 4. Should print 1140269483 1049"
pbmtog3 -nofixedwidth -reverse maze.pbm | cksum
echo "Test 5. Should print 28792587 47"
pbmmake -w 10 10 | pbmtog3 | cksum
echo "Test 6. Should print 277456854 32"
pbmmake -w 10 10 | \
pbmtog3 -nofixedwidth | cksum
echo "Test 7. Should print 28792587 47"
pbmmake -w 10000 10 | pbmtog3 | cksum
echo "Test 8. Should print 3736247115 62"
pbmmake -b 10 10 | pbmtog3 | cksum
echo "Test 9. Should print 2820255307 2191856"
pbmmake -g 1700 2286 | pbmtog3 | cksum
echo "Test 10. Should print 4159089282 2226575"
pbmmake -g 1800 2286 | pbmtog3 | cksum
|