about summary refs log tree commit diff
path: root/test/png-roundtrip2.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-07-01 02:59:43 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-07-01 02:59:43 +0000
commitab4ae9c9833ba4c088857c27290519fe20fc19d0 (patch)
treeee8a2a552e3372ec9659b2ec2dd198e2efdd4e4b /test/png-roundtrip2.test
parent9397237df015c17160c500d8c7b16b66c1ba4c1d (diff)
downloadnetpbm-mirror-ab4ae9c9833ba4c088857c27290519fe20fc19d0.tar.gz
netpbm-mirror-ab4ae9c9833ba4c088857c27290519fe20fc19d0.tar.xz
netpbm-mirror-ab4ae9c9833ba4c088857c27290519fe20fc19d0.zip
Add test for pamtopng, new tests sunicon-roundtrip, pbm-misc-converter
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2596 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/png-roundtrip2.test')
-rwxr-xr-xtest/png-roundtrip2.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/png-roundtrip2.test b/test/png-roundtrip2.test
new file mode 100755
index 00000000..af2ad029
--- /dev/null
+++ b/test/png-roundtrip2.test
@@ -0,0 +1,22 @@
+#! /bin/bash
+# This script tests: pngtopam pamtopng
+# Also requires:
+
+# Failure message
+## If this test fails and pnm-roundtrip.test succeeds, it indicates
+## some problem with pamtopng.
+##
+## If both tests fail, the likely cause is a problem with pngtopam.
+## It is also possible that there is some problem in libpng.
+
+# Test 1.  Should print 1926073387 101484 twice
+for flags in "" -gamma=.45
+  do
+  pamtopng testimg.ppm $flags | pngtopam | cksum
+  done
+
+# Test 2.  Should print 2425386270 41 twice
+for flags in "" -gamma=.45
+  do
+  pamtopng testgrid.pbm $flags | pngtopam | cksum
+  done