about summary refs log tree commit diff
path: root/test/xpm-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/xpm-roundtrip.test')
-rwxr-xr-xtest/xpm-roundtrip.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/xpm-roundtrip.test b/test/xpm-roundtrip.test
new file mode 100755
index 00000000..310022cc
--- /dev/null
+++ b/test/xpm-roundtrip.test
@@ -0,0 +1,8 @@
+#! /bin/bash
+# This script tests: ppmtoxpm xpmtoppm
+# Also requires: pgmtopbm ppmtopgm
+
+#${PBM_TESTPREFIX}ppmtoxpm -hexonly testimg.ppm | \
+# ${PBM_TESTPREFIX}xpmtoppm  | cksum
+${PBM_TESTPREFIX}ppmtoxpm testgrid.pbm | ${PBM_TESTPREFIX}xpmtoppm | \
+  ${PBM_BINPREFIX}ppmtopgm | ${PBM_BINPREFIX}pgmtopbm -th -value=0.5 | cksum