blob: e1d720d5c24f783038a743d08a3c9ac3f777486e (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#! /bin/sh
# This script tests: ppmrough
# Also requires:
defaultopts="-randomseed 1 -bg rgb:00/ff/ff -fg rgb:ff/ff/00 -w 100 -h 100"
# No border
echo "Test 1. Should print 378403602 30015"
ppmrough -randomseed 1 | cksum
echo "Test 2. Should print 378403602 30015"
ppmrough -randomseed 1 -var 0 | cksum
# Vertical border
echo "Test 3. Should print 535171440 30015"
ppmrough ${defaultopts} -left 20 | cksum
echo "Test 4. Should print 937167683 30015"
ppmrough ${defaultopts} -right 20 | cksum
echo "Test 5. Should print 1927474861 30015"
ppmrough ${defaultopts} -left 50 | cksum
echo "Test 6. Should print 3596045345 30015"
ppmrough ${defaultopts} -right 50 | cksum
echo "Test 7. Should print 198510149 30015"
ppmrough ${defaultopts} -right 20 -var 0 | cksum
# Horizontal border
echo "Test 8. Should print 1128371780 30015"
ppmrough ${defaultopts} -top 30 | cksum
echo "Test 9. Should print 2909877411 30015"
ppmrough ${defaultopts} -bottom 25 | cksum
echo "Test 10. Should print 2820370592 30015"
ppmrough ${defaultopts} -top 50 | cksum
echo "Test 11. Should print 2028409204 30015"
ppmrough ${defaultopts} -bottom 50 | cksum
echo "Test 12. Should print 4234304830 30015"
ppmrough ${defaultopts} -bottom 10 -var 0 | cksum
|