diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-11-24 19:18:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-11-24 19:18:45 +0000 |
commit | 4296fe52a37736b7533b3bf447b29ad7933a3ab4 (patch) | |
tree | 87644c5b7e46fb333bcde7903f8dcf0de4964d3d /test/pamditherbw.test | |
parent | b3f62ef1f3fb72b5674c4481dd25148fbe51850b (diff) | |
download | netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.gz netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.xz netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.zip |
New test framework, lots of tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1775 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamditherbw.test')
-rwxr-xr-x | test/pamditherbw.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/pamditherbw.test b/test/pamditherbw.test new file mode 100755 index 00000000..5335f12d --- /dev/null +++ b/test/pamditherbw.test @@ -0,0 +1,31 @@ +#! /bin/bash +# This script tests: pamditherbw +# Also requires: ppmtopgm + +# Make test input +${PBM_BINPREFIX}ppmtopgm testimg.ppm >${tmpdir}/testimg.pgm + +# Test 1. Simple threshold +${PBM_TESTPREFIX}pamditherbw -threshold -val=0.5 \ + ${tmpdir}/testimg.pgm | cksum + +# Test 2. Floyd-Steinberg +#${PBM_TESTPREFIX}pamditherbw -floyd -val=0.5 ${tmpdir}/testimg.pgm | cksum + +# Test 3. Atkinson +#${PBM_TESTPREFIX}pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum + +# Test 4. Hilbert +${PBM_TESTPREFIX}pamditherbw -hilbert ${tmpdir}/testimg.pgm | cksum + +# Test 5. Dither-8 +${PBM_TESTPREFIX}pamditherbw -dither8 ${tmpdir}/testimg.pgm | cksum + +# Test 6. Cluster4 +${PBM_TESTPREFIX}pamditherbw -cluster4 ${tmpdir}/testimg.pgm | cksum + +# Test 7. Atkinson +#${PBM_TESTPREFIX}pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum + +# Remove test file +rm ${tmpdir}/testimg.pgm |