about summary refs log tree commit diff
path: root/test/pamdepth-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamdepth-roundtrip.test')
-rwxr-xr-xtest/pamdepth-roundtrip.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pamdepth-roundtrip.test b/test/pamdepth-roundtrip.test
new file mode 100755
index 00000000..2795d659
--- /dev/null
+++ b/test/pamdepth-roundtrip.test
@@ -0,0 +1,12 @@
+#! /bin/bash
+# This script tests: pamdepth pgmtopbm
+# Also requires: 
+
+for i in 300 500 1023 4095 5000 16383 65535
+do
+${PBM_TESTPREFIX}pamdepth $i testimg.ppm | \
+  ${PBM_TESTPREFIX}pamdepth 255 | cksum
+done
+
+${PBM_TESTPREFIX}pamdepth 255 testgrid.pbm | ${PBM_TESTPREFIX}pamdepth 1 | \
+  ${PBM_TESTPREFIX}pgmtopbm -th -val=0.5 | cksum