diff options
-rw-r--r-- | test/Test-Order | 3 | ||||
-rw-r--r-- | test/pamflip1.ok (renamed from test/pamflip.ok) | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | test/pamflip1.test (renamed from test/pamflip.test) | 2 | ||||
-rw-r--r-- | test/pamflip2.ok | 3 | ||||
-rw-r--r-- | test/pamflip2.test | 19 |
5 files changed, 24 insertions, 4 deletions
diff --git a/test/Test-Order b/test/Test-Order index ff4b9855..9a9210e4 100644 --- a/test/Test-Order +++ b/test/Test-Order @@ -50,7 +50,8 @@ pamditherbw.test pbmclean.test pamcut.test pnmcat.test -pamflip.test +pamflip1.test +pamflip2.test pamenlarge.test pnminvert.test pamchannel.test diff --git a/test/pamflip.ok b/test/pamflip1.ok index c7427e46..64e0407e 100644 --- a/test/pamflip.ok +++ b/test/pamflip1.ok @@ -3,4 +3,3 @@ 2052917888 101484 3375384165 41 604323149 41 -490797850 37 diff --git a/test/pamflip.test b/test/pamflip1.test index 4ea275bd..0f60b72b 100755..100644 --- a/test/pamflip.test +++ b/test/pamflip1.test @@ -15,5 +15,3 @@ pamflip -tb testimg.ppm | cksum pamflip -lr testgrid.pbm | cksum # Test 5. Should print 604323149 41 pamflip -tb testgrid.pbm | cksum -# Test 6. Should print 490797850 37 -pamflip -cw testgrid.pbm | cksum diff --git a/test/pamflip2.ok b/test/pamflip2.ok new file mode 100644 index 00000000..d2ea501e --- /dev/null +++ b/test/pamflip2.ok @@ -0,0 +1,3 @@ +490797850 37 +3727293411 37 +3511745816 37 diff --git a/test/pamflip2.test b/test/pamflip2.test new file mode 100644 index 00000000..d9418b25 --- /dev/null +++ b/test/pamflip2.test @@ -0,0 +1,19 @@ +#! /bin/bash +# This script tests: pamflip +# Also requires: + + alias pamflip="${PBM_TESTPREFIX}pamflip" + shopt -s expand_aliases + +# Failure message +## Failure with this test indicates a problem with pamflip transpositions +## (90 degree flips) when input is PBM. This operation is done by an +## optional SSE routine. If you make a wrong choice during configure, +## this test will fail. + +# Test 1. Should print 490797850 37 +pamflip -cw testgrid.pbm | cksum +# Test 1. Should print 3727293411 37 +pamflip -ccw testgrid.pbm | cksum +# Test 2. Should print 3511745816 37 +pamflip -xy testgrid.pbm | cksum |