about summary refs log tree commit diff
path: root/test/pamdice-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamdice-roundtrip.test')
-rwxr-xr-xtest/pamdice-roundtrip.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pamdice-roundtrip.test b/test/pamdice-roundtrip.test
new file mode 100755
index 00000000..28997742
--- /dev/null
+++ b/test/pamdice-roundtrip.test
@@ -0,0 +1,12 @@
+#! /bin/bash
+# This script tests: pamdice pamundice
+# Also requires:
+
+
+tmpdir=${tmpdir:-/tmp}
+fname_stem=${tmpdir}/a
+
+pamdice testimg.ppm -outstem=${fname_stem} -width=50 -height=40
+pamundice ${fname_stem}_%1d_%1a.ppm -down=4 -across=5 | cksum
+
+rm ${fname_stem}_?_?.ppm