blob: c7241663cbfd1f43ef96cc86b357b4f1b941b478 (
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
|
#! /bin/sh
# This script tests: ppmrelief
# Also requires: pbmmake pgmramp pamflip
# Test 1. Should print 3637356697 688
pbmmake -w 15 15 | ppmrelief | cksum
# Test 2. Should print 3979143778 780
pgmramp -diagonal -maxval=30 16 16 | ppmrelief | cksum
# Test 3. Should print 2954951371 780
pgmramp -diagonal -maxval=30 16 16 | pamflip -lr | ppmrelief | cksum
# pgmramp -diagonal -maxval=30 16 16 | ppmrelief | ppmtopgm -plain
# P2
# 16 16
# 30
# 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
# 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|