diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-06-29 19:32:13 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-06-29 19:32:13 +0000 |
commit | 51eb5e0d2722f0cf1033ac158d2fdbcd82b6e800 (patch) | |
tree | 3b763ebf105fc1136ebcac13b7d4dafca114be68 /test/symmetry.test | |
parent | 1610a1f6aa54ad1d97926c1d8605720933059df7 (diff) | |
download | netpbm-mirror-51eb5e0d2722f0cf1033ac158d2fdbcd82b6e800.tar.gz netpbm-mirror-51eb5e0d2722f0cf1033ac158d2fdbcd82b6e800.tar.xz netpbm-mirror-51eb5e0d2722f0cf1033ac158d2fdbcd82b6e800.zip |
Reverse messed up commit
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2222 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/symmetry.test')
-rwxr-xr-x | test/symmetry.test | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/test/symmetry.test b/test/symmetry.test index 5f09e91e..5fdb3918 100755 --- a/test/symmetry.test +++ b/test/symmetry.test @@ -29,76 +29,67 @@ ## Failure with this test indicates that a generator or editor which ## should produce symmetric output images isn't doing so. -tmpdir=${tmpdir:-/tmp} - # Test 1. -rect_pgm=${tmpdir}/rect.pgm - -pgmramp -rect 31 31 > ${rect_pgm} +pgmramp -rect 31 31 > ${tmpdir}/rect.pgm ( for op in -null -tb -lr -r90 - do pamflip $op ${rect_pgm} | cksum + do pamflip $op ${tmpdir}/rect.pgm | cksum done ) | uniq -c | \ awk '$1==4 && $3>0 { print "ok"; exit }; { print }' -rm ${rect_pgm} +rm ${tmpdir}/rect.pgm # Test 2. -circle_pgm=${tmpdir}/circle.pgm -pgmramp -ell 63 63 > ${circle_pgm} +pgmramp -ell 63 63 > ${tmpdir}/circle.pgm ( for op in -null -tb -lr -r90 - do pamflip $op ${circle_pgm} | cksum + do pamflip $op ${tmpdir}/circle.pgm | cksum done ) | uniq -c | \ awk '$1==4 && $3>0 { print "ok"; exit }; { print }' -rm ${circle_pgm} +rm ${tmpdir}/circle.pgm # Test 3. -gauss_pgm=${tmpdir}/gauss.pgm -pamgauss -sigma=0.1 -tupletype=GRAYSCALE 25 25 > ${gauss_pgm} +pamgauss -sigma=0.1 -tupletype=GRAYSCALE 25 25 > ${tmpdir}/gauss.pam ( for op in -null -tb -lr -r90 - do pamflip $op ${gauss_pgm} | cksum + do pamflip $op ${tmpdir}/gauss.pam | cksum done ) | uniq -c | \ awk '$1==4 && $3>0 { print "ok"; exit }; { print }' -rm ${gauss_pgm} +rm ${tmpdir}/gauss.pam # Test 4. -kernel_pgm=${tmpdir}/kernel.pgm -pgmkernel 15 15 > ${kernel_pgm} +pgmkernel 15 15 > ${tmpdir}/kernel.pgm ( for op in -null -tb -lr -r90 - do pamflip $op ${kernel_pgm} | cksum + do pamflip $op ${tmpdir}/kernel.pgm | cksum done ) | uniq -c | \ awk '$1==4 && $3>0 { print "ok"; exit }; { print }' -rm ${kernel_pgm} +rm ${tmpdir}/kernel.pgm # Test 5. # Should print "ok" 7 times. -pscale_pbm=${tmpdir}/pscale.pbm for size in `seq 1 7` do -pbmmake -g 5 5 | pbmpscale $size > ${pscale_pbm} +pbmmake -g 5 5 | pbmpscale $size > ${tmpdir}/pscale.pbm ( for op in -null -tb -lr -r90 - do pamflip $op ${pscale_pbm} | cksum + do pamflip $op ${tmpdir}/pscale.pbm | cksum done ) | uniq -c | \ awk '$1==4 && $3>0 { print "ok"; exit }; { print }' -rm ${pscale_pbm} +rm ${tmpdir}/pscale.pbm done # Test 6. -ell_pgm=${tmpdir}/ell.pgm -pgmramp -ell 101 33 > ${ell_pgm} +pgmramp -ell 101 33 > ${tmpdir}/ell.pgm ( for op in -null -tb -lr - do pamflip $op ${ell_pgm} | cksum + do pamflip $op ${tmpdir}/ell.pgm | cksum done ) | uniq -c | \ awk '$1==3 && $3>0 { print "ok"; exit }; { print }' -rm ${ell_pgm} +rm ${tmpdir}/ell.pgm |