about summary refs log tree commit diff
path: root/test/pamfile.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamfile.test')
-rwxr-xr-xtest/pamfile.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pamfile.test b/test/pamfile.test
new file mode 100755
index 00000000..ac927172
--- /dev/null
+++ b/test/pamfile.test
@@ -0,0 +1,9 @@
+#! /bin/bash
+# This script tests: pamfile
+# Also requires: pamchannel pamtopnm
+
+
+pamfile testimg.ppm
+pamfile testgrid.pbm
+pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | pamfile
+pamchannel -tupletype="GRAYSCALE" -infile=testimg.ppm 0 | pamfile