diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-09-22 15:10:06 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-09-22 15:10:06 +0000 |
commit | 270c5f0ef4747ad5a1a418659213514be6cd1bda (patch) | |
tree | e09259abd808ac7e9a4c2494e1ccefa0d08ef991 /test/pnmcrop1.test | |
parent | 3e6bd495a661107cabb91df9e693151addae3f20 (diff) | |
download | netpbm-mirror-270c5f0ef4747ad5a1a418659213514be6cd1bda.tar.gz netpbm-mirror-270c5f0ef4747ad5a1a418659213514be6cd1bda.tar.xz netpbm-mirror-270c5f0ef4747ad5a1a418659213514be6cd1bda.zip |
Miscellaneous test updates
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3686 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pnmcrop1.test')
-rwxr-xr-x | test/pnmcrop1.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/pnmcrop1.test b/test/pnmcrop1.test index 6b37da23..34c7534a 100755 --- a/test/pnmcrop1.test +++ b/test/pnmcrop1.test @@ -51,13 +51,15 @@ for input_file in ${test_pbm} ${test_ppm} rm ${test_pbm} ${test_ppm} # Test 3 +echo "Test Invalid" + +test_out=${tmpdir}/test_out echo 1>&2 echo "Invalid command-line argument combinations." 1>&2 echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 -echo Test 3 for option in "-reportfull -reportsize" \ "-reportfull -borderfile=testgrid.pbm" \ "-reportsize -borderfile=testgrid.pbm" \ @@ -71,5 +73,7 @@ for option in "-reportfull -reportsize" \ "-bg-color=black -closeness=101" do echo ${option} - pnmcrop -reportfull ${option} testgrid.pbm || echo expected failure + pnmcrop -reportfull ${option} testgrid.pbm > ${test_out} || \ + echo -n "Expected failure: " ${option}; test -s ${test_out}; echo " "$? + rm ${test_out} done |