about summary refs log tree commit diff
path: root/test/pamvalidate.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-08 14:31:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-08 14:31:55 +0000
commitab2c3e2053f1caea636b781542bb032f72074821 (patch)
treecfedb9c69207a6a7901aa88ca027c31f3414fcf6 /test/pamvalidate.test
parent92957c23f07558fa9d73e183a9739eed240bf7b4 (diff)
downloadnetpbm-mirror-ab2c3e2053f1caea636b781542bb032f72074821.tar.gz
netpbm-mirror-ab2c3e2053f1caea636b781542bb032f72074821.tar.xz
netpbm-mirror-ab2c3e2053f1caea636b781542bb032f72074821.zip
Add tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3854 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamvalidate.test')
-rwxr-xr-xtest/pamvalidate.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pamvalidate.test b/test/pamvalidate.test
new file mode 100755
index 00000000..46dd1bfa
--- /dev/null
+++ b/test/pamvalidate.test
@@ -0,0 +1,17 @@
+#! /bin/bash
+# This script tests: pamvalidate
+# Also requires:
+
+echo "valid"
+echo -e "P1\n5 5\n01010\n10101\n01010\n00000\n11111\n" | pamvalidate -plain
+
+echo "not valid: Should print 0 four times"
+echo -e "P1\n5 5\n01010\n10101\n01010\n00000\n1111\n"  | pamvalidate | wc -c
+
+echo -e "P1\n5 5\n01010\n10102\n01010\n00001\n11111\n" | pamvalidate | wc -c
+
+echo -e "P1\n5\n01010\n10101\n01010\n00000\n11111\n" | pamvalidate | wc -c
+
+echo -e "P1\n5 5" | pamvalidate | wc -c
+
+