about summary refs log tree commit diff
path: root/test/ppmrelief.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-02-24 06:26:40 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-02-24 06:26:40 +0000
commit128b0f6f229d62cf2d6853fd954c6e72571d10e2 (patch)
treec67650574538de620d8c646912a83a4c61da06f5 /test/ppmrelief.test
parentdd9b5484e6a89997bef7cf9223c93e190db3b042 (diff)
downloadnetpbm-mirror-128b0f6f229d62cf2d6853fd954c6e72571d10e2.tar.gz
netpbm-mirror-128b0f6f229d62cf2d6853fd954c6e72571d10e2.tar.xz
netpbm-mirror-128b0f6f229d62cf2d6853fd954c6e72571d10e2.zip
Add files missing from commit 2 days ago
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2135 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/ppmrelief.test')
-rw-r--r--test/ppmrelief.test42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/ppmrelief.test b/test/ppmrelief.test
new file mode 100644
index 00000000..378a22c9
--- /dev/null
+++ b/test/ppmrelief.test
@@ -0,0 +1,42 @@
+#! /bin/bash
+# This script tests: ppmrelief
+# Also requires: pbmmake pgmramp pamflip
+
+  alias ppmrelief="${PBM_TESTPREFIX}ppmrelief"
+  alias pbmmake="${PBM_BINPREFIX}pbmmake"
+  alias pgmramp="${PBM_BINPREFIX}pgmramp"
+  alias pamflip="${PBM_BINPREFIX}pamflip"
+  shopt -s expand_aliases
+
+# 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
+