You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@locus.apache.org on 2000/01/10 21:33:05 UTC
cvs commit: jakarta-tomcat/src/tests/share/tests/request get.properties
costin 00/01/10 12:33:05
Modified: src/tests/share/tests/request get.properties
Added: src/tests/bin runclient.sh test.xml
Log:
New script to run only the client side of tomcat's tests.
( start server / runclient / stop server).
Added a test.xml script for ant-driven tests ( will make the
shell/bat scripts obsolete if someone has time to continue it).
It uses the <java RunTest>.
The advantage is that if something fails you can keep testing
without running all the tests or stoping the server.
Revision Changes Path
1.1 jakarta-tomcat/src/tests/bin/runclient.sh
Index: runclient.sh
===================================================================
#!/bin/sh
# Shell script to run test harness
port=8080
host=localhost
test=testlist.txt
JAVACMD=java
# override settings
if [ -f ${HOME}/.moorc ] ; then
. ${HOME}/.moorc
fi
CLASSPATH=classes:lib/moo.jar:${CLASSPATH}
export CLASSPATH
echo Using classpath: ${CLASSPATH}
echo
$JAVACMD -Dtest.hostname=$host -Dtest.port=$port org.apache.tools.moo.Main -testfile $test -debug
1.1 jakarta-tomcat/src/tests/bin/test.xml
Index: test.xml
===================================================================
<project name="TestRun" default="main" basedir=".">
<target name="main">
<!-- Need to mark the time, compute the diff at end -->
<java class="org.apache.tools.moo.RunTest" args="tests.file.FileLengthTest" />
<java class="org.apache.tools.moo.RunTest" args="tests.file.ContentTypeTest" />
<java class="org.apache.tools.moo.RunTest" args="tests.file.FileIntegrityTest" />
<java class="org.apache.tools.moo.RunTest" args="tests.file.WelcomeFileTest" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.SimpleForward" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.ForwardWithQuery" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.SimpleInclude" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.IncludeFile" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.Mismatch1" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.Mismatch2" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.IncludeMismatch1" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.IncludeMismatch2" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.SimpleRedirect" />
<java class="org.apache.tools.moo.RunTest" args="tests.dispatch.PrintWriterTest" />
<java class="org.apache.tools.moo.RunTest" args="tests.request.Get" />
<java class="org.apache.tools.moo.RunTest" args="tests.request.Post" />
<java class="org.apache.tools.moo.RunTest" args="tests.request.RequestMap" />
<java class="org.apache.tools.moo.RunTest" args="tests.jsp.Jsp" />
</target>
</project>
<!--
## tests.y2k.HttpDateTest
#tests.perf.CounterClient
-->
1.9 +9 -2 jakarta-tomcat/src/tests/share/tests/request/get.properties
Index: get.properties
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/tests/share/tests/request/get.properties,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- get.properties 1999/12/16 01:46:12 1.8
+++ get.properties 2000/01/10 20:33:05 1.9
@@ -6,7 +6,7 @@
Debug:false
-tests:1,2,5,6,8,9,11,12,18,19,20
+tests:1,2,5,6,8,9,11,12,18,19,20,22
test.1.description:/request/uri/does/not/exist : 0.9 : 404
@@ -115,4 +115,11 @@
test.21.description:/servlet/jsp : 1.0 : 404
test.21.request:GET /servlet/jsp HTTP/1.0
test.21.response:HTTP/1.0 200 OK
-test.21.magnitude:false
\ No newline at end of file
+test.21.magnitude:false
+
+# WelcomeFileTest
+test.22.description:/servlet/jsp : 1.0 : 404
+test.22.request:GET /welcome HTTP/1.0
+test.22.response:HTTP/1.0 302
+test.22.magnitude:true
+