about summary refs log tree commit diff
path: root/test/pict-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-26 16:03:01 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-26 16:03:01 +0000
commit67e1689f9d7e6b8dfffe393f2d318e3e374c7a36 (patch)
tree5943a3e98e1f12ed80d92e2cb8c5623d8af9fcd3 /test/pict-roundtrip.test
parentfd6e24ededb4ee1e92e101ea50fe21d88630c17f (diff)
downloadnetpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.gz
netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.xz
netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.zip
Promote current development as Release 10.68
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2294 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pict-roundtrip.test')
-rwxr-xr-xtest/pict-roundtrip.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pict-roundtrip.test b/test/pict-roundtrip.test
new file mode 100755
index 00000000..457cb4b8
--- /dev/null
+++ b/test/pict-roundtrip.test
@@ -0,0 +1,15 @@
+#! /bin/bash
+# This script tests: picttoppm ppmtopict
+# Also requires: pamseq pamdepth pamtopnm pnmremap
+
+  alias picttoppm="${PBM_TESTPREFIX}picttoppm"
+  alias ppmtopict="${PBM_TESTPREFIX}ppmtopict"
+  alias pamseq="${PBM_BINPREFIX}pamseq"
+  alias pamdepth="${PBM_BINPREFIX}pamdepth"
+  alias pamtopnm="${PBM_BINPREFIX}pamtopnm"
+  alias pnmremap="${PBM_BINPREFIX}pnmremap"
+  shopt -s expand_aliases
+
+#Test.  Should print 984199586 101484
+pamseq 3 5 -tupletype=RGB | pamdepth 255 | pamtopnm | \
+  pnmremap -mapfile=- testimg.ppm | ppmtopict | picttoppm | cksum