blob: b99561f64cfc7b1eb72b0af94be3fdc3ea7a2ec9 (
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: pbmpscale
# Also requires: pbmtext
echo "Test 1. Should print \"abc\" rendered in PBM plain format"
pbmtext -nomargin "abc" | pbmpscale 1 -plain
echo "Test 2. \"ABC\" in PBM plain format"
pbmtext -nomargin "ABC" | pbmpscale 2 -plain
echo "Test 3. \"D.!\" in PBM plain format"
pbmtext -nomargin "D.!" | pbmpscale 3 -plain
echo "Test 3. \"E,?\" in PBM plain format"
pbmtext -nomargin "E,?" | pbmpscale 4 -plain
echo "Test 5. Should print 576003211 10631"
pbmpscale 5 maze.pbm | cksum
echo "Test 6. Should print 3501321825 369"
pbmtext -nomargin "6" | pbmpscale 6 | cksum
echo "Test 7. Should print 1588181271 535"
pbmtext -nomargin "7" | pbmpscale 7 | cksum
echo "Test 8. Should print 2843090781 610"
pbmtext -nomargin "8" | pbmpscale 8 | cksum
echo "Test 9. Should print 146160766 820"
pbmtext -nomargin "9" | pbmpscale 9 | cksum
echo "Test 10. Should print 3327221668 2111"
pbmtext -nomargin "10" | pbmpscale 10 | cksum
echo "Test Invalid"
. ${srcdir}/test-invalid.inc
invCmd "pbmpscale testgrid.pbm"
invCmd "pbmpscale 0 testgrid.pbm"
invCmd "pbmpscale 2 3 testgrid.pbm"
|