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-09-26 19:59:25 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-09-26 19:59:25 +0000
commitd77b3e8f164893762749f22f38bed0d13883905e (patch)
treee1fa32bd49bdc7c5e862aba30c0ca81a963ef658 /test/png-roundtrip2.test
parent6e879ff027c9019c964d15ae0e0c966fc7d1c7a8 (diff)
downloadnetpbm-mirror-d77b3e8f164893762749f22f38bed0d13883905e.tar.gz
netpbm-mirror-d77b3e8f164893762749f22f38bed0d13883905e.tar.xz
netpbm-mirror-d77b3e8f164893762749f22f38bed0d13883905e.zip
Update Advanced to 10.72
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2639 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