bobh        2002/09/10 20:33:58

  Modified:    tester   build.xml
               tester/src/bin tester.xml
  Log:
  fix some false positive and false negative tests
  from Steve Downey <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-tomcat-catalina/tester/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/tester/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml 18 Jul 2002 16:47:24 -0000      1.1
  +++ build.xml 11 Sep 2002 03:33:58 -0000      1.2
  @@ -8,14 +8,14 @@
     <property file="${user.home}/build.properties"/>
   
     <property name="build.compiler"  value="classic"/>
  -  <property name="servletapi.home" value="../../jakarta-servletapi-4/dist"/>
  +  <property name="api.home" value="../../jakarta-servletapi-5/dist"/>
     <property name="tester.build"    value="${basedir}/build"/>
     <property name="tester.deploy"   value="${basedir}/../build"/>
     <property name="tester.dist"     value="${basedir}/dist"/>
   
     <!-- ================== Derived Property Values ========================= -->
     <property name="ant.jar"         value="${ant.home}/lib/ant.jar"/>
  -  <property name="servlet.jar"     value="${servletapi.home}/lib/servlet.jar"/>
  +  <property name="servlet-api.jar" 
value="${api.home}/jsr154/dist/lib/servlet-api.jar"/>
   
     <!-- =================== BUILD: Create Directories ====================== -->
     <target name="build-prepare">
  @@ -56,7 +56,7 @@
   
       <!-- Compile tester components and tools -->
       <javac srcdir="src/tester" destdir="${tester.build}/classes"
  -     classpath="${ant.jar}:${servlet.jar}:${xerces.jar}"
  +     classpath="${ant.jar}:${servlet-api.jar}:${xercesImpl.jar}"
        deprecation="off" debug="on" optimize="off"
        excludes="**/CVS/**"/>
   
  @@ -87,7 +87,7 @@
           
tofile="${tester.build}/web/WEB-INF/classes/org/apache/tester/Unpacked05.txt"/>
   
       <!-- Install Xerces -->
  -    <copy  todir="${tester.build}/web/WEB-INF/lib" file="${xerces.jar}"/>
  +    <copy  todir="${tester.build}/web/WEB-INF/lib" file="${xercesImpl.jar}"/>
   
       <!-- Create and install tester library -->
       <mkdir   dir="${tester.build}/web/WEB-INF/lib"/>
  
  
  
  1.3       +13 -19    jakarta-tomcat-catalina/tester/src/bin/tester.xml
  
  Index: tester.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/tester/src/bin/tester.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tester.xml        9 Aug 2002 02:12:13 -0000       1.2
  +++ tester.xml        11 Sep 2002 03:33:58 -0000      1.3
  @@ -8,11 +8,15 @@
   <!--  <property name="protocol"       value="HTTP/1.0"/> -->
     <property name="protocol"       value=""/> <!-- Use HttpURLConnection -->
     <property name="context.path"   value="/tester"/>
  -  <property name="examples.path"  value="/examples"/>
  +  <property name="examples.path"  value="/jsp-examples"/>
     <property name="golden.path"    value="${context.path}/golden"/>
     <property name="manager.path"   value="/manager"/>
     <property name="reload.path"    value="/tester"/>
  -  <taskdef  name="tester"     classname="org.apache.tester.TestClient"/>
  +  <taskdef  name="tester"     classname="org.apache.tester.TestClient">
  +    <classpath>
  +      <pathelement 
location="${catalina.home}/webapps/tester/WEB-INF/lib/tester.jar"/>
  +    </classpath>
  +  </taskdef>
   
   
     <target name="all" 
depends="ROOT,Authentication,CaseSensitive,Decoding,ErrorPage,FilterRequest,FilterResponse,Jndi,Jsp,Lifecycle,RequestDispatcher,Resources,Security,ServletContext,ServletRequest,ServletResponse,HttpSession,XercesTest"/>
  @@ -110,33 +114,23 @@
             status="404"/>
   
       <!-- Should be able to execute the Date example -->
  -    <touch  file="${catalina.home}/webapps/examples/jsp/dates/date.jsp"/>
       <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/jsp/dates/date.jsp" debug="${debug}"
  +         request="${examples.path}/dates/date.jsp" debug="${debug}"
             status="200"/>
   
       <!-- Should not be able to view the source of the Date example -->
  -    <touch  file="${catalina.home}/webapps/examples/jsp/dates/date.jsp"/>
       <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/jsp/dates/date.Jsp" debug="${debug}"
  +         request="${examples.path}/dates/date.Jsp" debug="${debug}"
             status="404"/>
   
       <!-- Should not be able to view the source of the Date example -->
  -    <touch  file="${catalina.home}/webapps/examples/jsp/dates/date.jsp"/>
       <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/jsp/dates/Date.jsp" debug="${debug}"
  +         request="${examples.path}/dates/Date.jsp" debug="${debug}"
             status="404"/>
   
       <!-- Should not be able to view the source of the Date example -->
  -    <touch  file="${catalina.home}/webapps/examples/jsp/dates/date.jsp"/>
       <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/jsp/Dates/date.jsp" debug="${debug}"
  -          status="404"/>
  -
  -    <!-- Should not be able to view the source of the Date example -->
  -    <touch  file="${catalina.home}/webapps/examples/jsp/dates/date.jsp"/>
  -    <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/Jsp/dates/date.jsp" debug="${debug}"
  +         request="${examples.path}/Dates/date.jsp" debug="${debug}"
             status="404"/>
   
       <!-- Should be able to execute the HelloWorld servlet example -->
  @@ -203,7 +197,7 @@
   
       <!-- Verify we can access the JSP page normally -->
       <tester host="${host}" port="${port}" protocol="${protocol}"
  -         request="${examples.path}/jsp/snp/snoop.jsp"
  +         request="${examples.path}/snp/snoop.jsp"
             status="200"/>
   
     </target>
  @@ -1386,12 +1380,12 @@
       <!-- Should not be able to use specially crafted URLs to get around 
            security constraints -->
       <tester host="${host}" port="${port}" protocol="HTTP/1.0"
  -         request="${examples.path}/jsp/security//protected/index.jsp" 
  +         request="${examples.path}/security//protected/index.jsp" 
            debug="${debug}" status="302"/>
   
       <!-- DefaultServlet should not decode the path again -->
       <tester host="${host}" port="${port}" protocol="HTTP/1.0"
  -         request="${examples.path}/jsp/snp/snoop%252ejsp"
  +         request="${examples.path}/snp/snoop%252ejsp"
             status="404"/>
   
     </target>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to