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/pbmupc.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/pbmupc.test')
-rwxr-xr-x | test/pbmupc.test | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/test/pbmupc.test b/test/pbmupc.test index aee380b0..fb9ec90e 100755 --- a/test/pbmupc.test +++ b/test/pbmupc.test @@ -9,19 +9,33 @@ do pbmupc $type 0 72890 00011 done | cksum -echo "Test 2" +echo "Test Invalid" + +tmpdir=${tmpdir:-/tmp} +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 -pbmupc -s3 0 72890 00011 || echo "Exptected error 1" -pbmupc -s1 72890 00011 || echo "Exptected error 2" -pbmupc -s1 0 72890 || echo "Exptected error 3" -pbmupc -s1 10 72890 00011 || echo "Exptected error 4" -pbmupc -s1 0 172890 00011 || echo "Exptected error 5" -pbmupc -s1 0 2890 00011 || echo "Exptected error 6" -pbmupc -s1 0 72890 100011 || echo "Exptected error 7" -pbmupc -s1 0 72890 0011 || echo "Exptected error 8" -pbmupc -s1 0 72890 100011 1 || echo "Exptected error 9" +pbmupc -s3 0 72890 00011 > ${test_out} || \ + echo -n "Expected failure 1"; test -s ${test_out}; echo " "$? +pbmupc -s1 72890 00011 > ${test_out} || \ + echo -n "Expected failure 2"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 72890 > ${test_out} || \ + echo -n "Expected failure 3"; test -s ${test_out}; echo " "$? +pbmupc -s1 10 72890 00011 > ${test_out} || \ + echo -n "Expected failure 4"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 172890 00011 > ${test_out} || \ + echo -n "Expected failure 5"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 2890 00011 > ${test_out} || \ + echo -n "Expected failure 6"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 72890 100011 > ${test_out} || \ + echo -n "Expected failure 7"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 72890 0011 > ${test_out} || \ + echo -n "Expected failure 8"; test -s ${test_out}; echo " "$? +pbmupc -s1 0 72890 100011 1 > ${test_out} || \ + echo -n "Expected failure 9"; test -s ${test_out}; echo " "$? + +rm ${test_out} |