about summary refs log tree commit diff
path: root/test/ppmspread.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/ppmspread.test')
-rwxr-xr-xtest/ppmspread.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ppmspread.test b/test/ppmspread.test
new file mode 100755
index 00000000..871f7438
--- /dev/null
+++ b/test/ppmspread.test
@@ -0,0 +1,12 @@
+#! /bin/bash
+# This script tests: ppmspread
+# Also requires: ppmtopgm pgmtopbm
+
+echo "Test 1. Should print 639729144 101484"
+ppmspread -randomseed=1 10 testimg.ppm | cksum
+
+echo "Test 2. Should print 3278353642 685"
+ppmspread -randomseed=1 1 testgrid.pbm | cksum
+
+echo "Test 3. Should print 2425386270 41"
+ppmspread -randomseed=1 0 testgrid.pbm | ppmtopgm | pgmtopbm | cksum