diff options
Diffstat (limited to 'test/pnmquantall.test')
-rwxr-xr-x | test/pnmquantall.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pnmquantall.test b/test/pnmquantall.test new file mode 100755 index 00000000..e40276e5 --- /dev/null +++ b/test/pnmquantall.test @@ -0,0 +1,19 @@ +#! /bin/bash +# This script tests: pnmquantall +# Also requires: ppmtorgb3 pgmhist + +PATH=/src/netpbm/pbin/:/usr/bin + +ppmtorgb3 testimg.ppm + +pnmquantall 20 testimg.red testimg.grn testimg.blu + +for i in testimg.red testimg.grn testimg.blu +do +cksum $i +done + +# Should print 1 + +pnmcat testimg.red testimg.grn testimg.blu -tb | \ + pgmhist -m | awk '$2>0 {s++}; END { print s<=20 }' |