about summary refs log tree commit diff
path: root/test/pamenlarge.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamenlarge.test')
-rwxr-xr-xtest/pamenlarge.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pamenlarge.test b/test/pamenlarge.test
new file mode 100755
index 00000000..c3efc4b2
--- /dev/null
+++ b/test/pamenlarge.test
@@ -0,0 +1,12 @@
+#! /bin/bash
+# This script tests: pamenlarge
+# Also requires: ppmtopgm
+
+# Test 1.  Should print 3424505894 913236
+${PBM_TESTPREFIX}pamenlarge 3 testimg.ppm | cksum
+# Test 2.  Should print 4152147096 304422
+${PBM_BINPREFIX}ppmtopgm testimg.ppm | ${PBM_TESTPREFIX}pamenlarge 3 | cksum
+# Test 3.  Should print 3342398172 297
+${PBM_TESTPREFIX}pamenlarge 3 testgrid.pbm | cksum
+# Test 4.  Should print 237488670 3133413
+${PBM_TESTPREFIX}pamenlarge 3 -plain testimg.ppm | cksum