Skip to content

Commit 55b4e83

Browse files
author
giraffedata
committed
Add files missing from commit 2 days ago
git-svn-id: https://svn.code.sf.net/p/netpbm/code/trunk@2135 9d0c8265-081b-0410-96cb-a4ca84ce46f8
1 parent b646814 commit 55b4e83

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

test/ppmrelief.ok

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
3637356697 688
2+
3979143778 780
3+
2954951371 780

test/ppmrelief.test

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#! /bin/bash
2+
# This script tests: ppmrelief
3+
# Also requires: pbmmake pgmramp pamflip
4+
5+
alias ppmrelief="${PBM_TESTPREFIX}ppmrelief"
6+
alias pbmmake="${PBM_BINPREFIX}pbmmake"
7+
alias pgmramp="${PBM_BINPREFIX}pgmramp"
8+
alias pamflip="${PBM_BINPREFIX}pamflip"
9+
shopt -s expand_aliases
10+
11+
# Test 1. Should print 3637356697 688
12+
pbmmake -w 15 15 | ppmrelief | cksum
13+
14+
# Test 2. Should print 3979143778 780
15+
pgmramp -diagonal -maxval=30 16 16 | ppmrelief | cksum
16+
17+
# Test 3. Should print 2954951371 780
18+
pgmramp -diagonal -maxval=30 16 16 | pamflip -lr | ppmrelief | cksum
19+
20+
21+
# pgmramp -diagonal -maxval=30 16 16 | ppmrelief | ppmtopgm -plain
22+
23+
# P2
24+
# 16 16
25+
# 30
26+
# 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
27+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
28+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
29+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
30+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
31+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
32+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
33+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
34+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
35+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
36+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
37+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
38+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
39+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
40+
# 0 14 14 14 14 14 14 14 14 14 14 14 14 14 14 0
41+
# 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
42+

0 commit comments

Comments
 (0)