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.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pamdepth-roundtrip.test b/test/pamdepth-roundtrip.test
new file mode 100755
index 00000000..0c7cb8b0
--- /dev/null
+++ b/test/pamdepth-roundtrip.test
@@ -0,0 +1,13 @@
+#! /bin/bash
+# This script tests: pamdepth pgmtopbm
+# Also requires:
+
+
+for i in 300 500 1023 4095 5000 16383 65535
+do
+pamdepth $i testimg.ppm | \
+  pamdepth 255 | cksum
+done
+
+pamdepth 255 testgrid.pbm | pamdepth 1 | \
+  pgmtopbm -th -val=0.5 | cksum