about summary refs log tree commit diff
path: root/test/ppmtoppm.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/ppmtoppm.test')
-rwxr-xr-xtest/ppmtoppm.test15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/ppmtoppm.test b/test/ppmtoppm.test
index 797c733d..90ff2ddf 100755
--- a/test/ppmtoppm.test
+++ b/test/ppmtoppm.test
@@ -1,6 +1,15 @@
-#! /bin/bash
+#! /bin/sh
 # This script tests: ppmtoppm
-# Also requires:
+# Also requires: pbmmake pgmramp
 
+echo "Test 1.  Should print a simple 4 x 3 pattern"
+pbmmake -g 4 3 | ppmtoppm -plain
 
-ppmtoppm < testgrid.pbm | cksum
+echo "Test 2.  Should print a simple 6 x 8 pattern"
+pgmramp -diagonal -maxval=5 6 8 | ppmtoppm -plain
+
+echo "Test 3.  Should print 669206373 10102"
+ppmtoppm < maze.pbm | cksum
+
+echo "Test 4.  Should print 1926073387 101484"
+ppmtoppm < testimg.ppm | cksum
\ No newline at end of file