about summary refs log tree commit diff
path: root/test/ppmchange-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/ppmchange-roundtrip.test')
-rwxr-xr-xtest/ppmchange-roundtrip.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ppmchange-roundtrip.test b/test/ppmchange-roundtrip.test
new file mode 100755
index 00000000..c303c11b
--- /dev/null
+++ b/test/ppmchange-roundtrip.test
@@ -0,0 +1,11 @@
+#! /bin/bash
+# This script tests: ppmchange
+# Also requires: pgmtopbm pnminvert ppmtopgm
+
+${PBM_TESTPREFIX}ppmchange black white white black testgrid.pbm | \
+${PBM_BINPREFIX}pnminvert | ${PBM_BINPREFIX}ppmtopgm | \
+${PBM_BINPREFIX}pgmtopbm -th -val=0.5 | cksum
+
+${PBM_TESTPREFIX}ppmchange  black white white black testgrid.pbm | \
+${PBM_TESTPREFIX}ppmchange  black white white black -plain  | \
+${PBM_BINPREFIX}ppmtopgm | ${PBM_BINPREFIX}pgmtopbm -th -val=0.5 | cksum