nacho       01/08/25 18:37:11

  Modified:    src/admin/test test.jsp
  Log:
  Obtaining tests run elapsed time
  
  Revision  Changes    Path
  1.16      +6 -3      jakarta-tomcat/src/admin/test/test.jsp
  
  Index: test.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/admin/test/test.jsp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- test.jsp  2001/08/07 12:17:44     1.15
  +++ test.jsp  2001/08/26 01:37:11     1.16
  @@ -1,7 +1,7 @@
   <html><title>Tomcat Self-Test</title>
   <body bgcolor="#FFFFFF">
   <h1>Tomcat Self-test</h1> 
  -
  +<%@ page import="java.util.*" %>
   <%@ taglib uri="http://jakarta.apache.org/taglibs/tomcat_admin-1.0"; 
              prefix="adm" %>
   <%@ taglib uri="http://jakarta.apache.org/taglibs/ant-1.0"; 
  @@ -9,6 +9,8 @@
   
   This page will show the result of executing the sanity test suite. 
   
  +<%! Date d ; %>
  +
   <%@ include file="sanity-form.jsp" %>
   
   <% // This is an ugly hack to make the logs easily accessible.
  @@ -31,7 +33,7 @@
   %>
   
   <ant:gtest />
  -
  +<% d = new Date(); %>
   <ant:ant>
     <ant:target param="target" />
     
  @@ -48,13 +50,14 @@
     <ant:property name="http.protocol" param="server.proto" />
     <ant:property name="host" param="host" />
   </ant:ant>
  -
   <% // Test completed, display the results ( outType=none means
      // Gtest doesn't generate any output ( but we have to wait untill
      // it's done ), use 'html' for "interactive" results
   %>
   
   <h1>Test <%= antProperties.getProperty("revision") %></h1>
  +
  +Executed in <%= (new Date()).getTime() - d.getTime() %> Milliseconds.<br>
   
   <% // -------------------- Failures -------------------- %>
   <h1>FAILED Tests</h1>
  
  
  

Reply via email to