about summary refs log tree commit diff
path: root/test/pfm-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pfm-roundtrip.test')
-rwxr-xr-xtest/pfm-roundtrip.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pfm-roundtrip.test b/test/pfm-roundtrip.test
new file mode 100755
index 00000000..7cd2693c
--- /dev/null
+++ b/test/pfm-roundtrip.test
@@ -0,0 +1,7 @@
+#! /bin/bash
+# This script tests: pamtopfm pfmtopam
+# Also requires: pamtopnm
+
+# Should print 1926073387 101484, cksum of testimg.ppm
+${PBM_TESTPREFIX}pamtopfm testimg.ppm | ${PBM_TESTPREFIX}pfmtopam | \
+  ${PBM_BINPREFIX}pamtopnm | cksum