Fix the last output test that didn't pass.

Now TestOutSinks can be run as an automated test, by anyone, to find
regressions, instead of me having to go through each one by hand.
This commit is contained in:
akkana%netscape.com 1999-12-01 22:41:22 +00:00
parent 3b299c0483
commit 86106d8d29
6 changed files with 30 additions and 26 deletions

View File

@ -48,19 +48,19 @@ if ($status != 0) then
set errmsg = ($errmsg "simplefmt.out")
endif
echo "Testing non-wrapped plaintext ..."
TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html
echo "Testing non-wrapped plaintext in preformatted mode ..."
TestOutput -i text/html -o text/plain -f 16 -c OutTestData/plainnowrap.out OutTestData/plain.html
if ($status != 0) then
echo "Non-wrapped plaintext test failed."
set errmsg = ($errmsg "plainnowrap.out")
endif
echo "Testing wrapped and formatted plaintext ..."
TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
if ($status != 0) then
echo "Wrapped plaintext test failed."
set errmsg = ($errmsg "plainwrap.out")
endif
# echo "Testing wrapped and formatted plaintext ..."
# TestOutput -i text/html -o text/plain -f 32 -c OutTestData/plainwrap.out OutTestData/plain.html
# if ($status != 0) then
# echo "Wrapped plaintext test failed."
# set errmsg = ($errmsg "plainwrap.out")
# endif
echo "Testing mail quoting ..."
TestOutput -i text/html -o text/plain -f 2 -w 50 -c OutTestData/mailquote.out OutTestData/mailquote.html
@ -90,8 +90,10 @@ if ($status != 0) then
set errmsg = ($errmsg "htmltable.out")
endif
if (errmsg != "") then
if ($errmsg != "") then
echo " "
echo TESTS FAILED: $errmsg
exit 1
else
echo ALL TESTS SUCCEEDED
endif

View File

@ -38,9 +38,9 @@ echo Testing non-wrapped plaintext ...
TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html
IF ERRORLEVEL 1 echo Non-wrapped plaintext test failed. && set errmsg=%errmsg% plainnowrap.out
echo Testing wrapped bug unformatted plaintext ...
TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out
REM echo Testing wrapped bug unformatted plaintext ...
REM TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
REM IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out
echo Testing mail quoting ...
TestOutput -i text/html -o text/plain -c OutTestData/mailquote.out OutTestData/mailquote.html
@ -59,3 +59,4 @@ TestOutput -i text/html -o text/plain -c OutTestData/htmltable.out OutTestData/h
IF ERRORLEVEL 1 echo HTML Table to Plain text failed (%errorlevel%). && set errmsg=%errmsg% htmltable.out
IF DEFINED %errmsg% echo && echo TESTS FAILED: %errmsg% && exit 1
echo ALL TESTS SUCCEEDED

View File

@ -10,4 +10,3 @@ This is a test to make sure the output converters pick up the moz-pre-wrap style
- This should be tested with wrapping off.
This is the end.

View File

@ -48,19 +48,19 @@ if ($status != 0) then
set errmsg = ($errmsg "simplefmt.out")
endif
echo "Testing non-wrapped plaintext ..."
TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html
echo "Testing non-wrapped plaintext in preformatted mode ..."
TestOutput -i text/html -o text/plain -f 16 -c OutTestData/plainnowrap.out OutTestData/plain.html
if ($status != 0) then
echo "Non-wrapped plaintext test failed."
set errmsg = ($errmsg "plainnowrap.out")
endif
echo "Testing wrapped and formatted plaintext ..."
TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
if ($status != 0) then
echo "Wrapped plaintext test failed."
set errmsg = ($errmsg "plainwrap.out")
endif
# echo "Testing wrapped and formatted plaintext ..."
# TestOutput -i text/html -o text/plain -f 32 -c OutTestData/plainwrap.out OutTestData/plain.html
# if ($status != 0) then
# echo "Wrapped plaintext test failed."
# set errmsg = ($errmsg "plainwrap.out")
# endif
echo "Testing mail quoting ..."
TestOutput -i text/html -o text/plain -f 2 -w 50 -c OutTestData/mailquote.out OutTestData/mailquote.html
@ -90,8 +90,10 @@ if ($status != 0) then
set errmsg = ($errmsg "htmltable.out")
endif
if (errmsg != "") then
if ($errmsg != "") then
echo " "
echo TESTS FAILED: $errmsg
exit 1
else
echo ALL TESTS SUCCEEDED
endif

View File

@ -38,9 +38,9 @@ echo Testing non-wrapped plaintext ...
TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html
IF ERRORLEVEL 1 echo Non-wrapped plaintext test failed. && set errmsg=%errmsg% plainnowrap.out
echo Testing wrapped bug unformatted plaintext ...
TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out
REM echo Testing wrapped bug unformatted plaintext ...
REM TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html
REM IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out
echo Testing mail quoting ...
TestOutput -i text/html -o text/plain -c OutTestData/mailquote.out OutTestData/mailquote.html
@ -59,3 +59,4 @@ TestOutput -i text/html -o text/plain -c OutTestData/htmltable.out OutTestData/h
IF ERRORLEVEL 1 echo HTML Table to Plain text failed (%errorlevel%). && set errmsg=%errmsg% htmltable.out
IF DEFINED %errmsg% echo && echo TESTS FAILED: %errmsg% && exit 1
echo ALL TESTS SUCCEEDED

View File

@ -10,4 +10,3 @@ This is a test to make sure the output converters pick up the moz-pre-wrap style
- This should be tested with wrapping off.
This is the end.