geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502851 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS: Controller.groovy report/ReportGenerator.groovy report/TestCase.groovy
Date Sat, 03 Feb 2007 03:07:37 GMT
Author: jdillon
Date: Fri Feb  2 19:07:37 2007
New Revision: 502851

URL: http://svn.apache.org/viewvc?view=rev&rev=502851
Log:
Fixed a few problems

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy?view=diff&rev=502851&r1=502850&r2=502851
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
Fri Feb  2 19:07:37 2007
@@ -71,6 +71,11 @@
         runtests()
     }
     
+    //
+    // TODO: May want to collect the harness too, so that report generation can work
+    //       until AH supports picking up a specific dependency from a workflow
+    //
+    
     def collectRuntime = {
         def sourceDir = new File('.').canonicalFile
         log.info "Source dir: $sourceDir"
@@ -240,6 +245,13 @@
     def collectResults = {
         def workflowId = params.require('anthill.workflow.id')
         def iteration = params.require('iteration')
+        
+        //
+        // FIXME: Need this so we can include tck-work/<webcontainer> below
+        //        should avoid putting results into that directory and rm this
+        //
+        
+        def webcontainer = params.require('webcontainer')
         
         def sourceDir = new File('project/tck-testsuite/target').canonicalFile
         log.info "Source dir: $sourceDir"

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy?view=diff&rev=502851&r1=502850&r2=502851
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
Fri Feb  2 19:07:37 2007
@@ -99,8 +99,7 @@
             
             def testCases = []
             scanner.each { file ->
-                def factory = { new TestResult(it) }.curry(file)
-                testCases << new TestCase(new LazyProxy(factory))
+                testCases << TestCase.fromFile(file)
             }
             
             log.info 'Loading testsuite'

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy?view=diff&rev=502851&r1=502850&r2=502851
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/TestCase.groovy
Fri Feb  2 19:07:37 2007
@@ -26,6 +26,7 @@
 import java.text.SimpleDateFormat
 
 import gbuild.system.LogSupport
+import gbuild.system.util.LazyProxy
 
 import org.apache.commons.lang.time.DurationFormatUtils
 
@@ -75,6 +76,14 @@
     
     def getStatus() {
         return result.status
+    }
+    
+    static TestCase fromFile(file) {
+        assert file
+        
+        file = new File("$file")
+        def factory = { new TestResult(it) }.curry(file)
+        return new TestCase(new LazyProxy(factory))
     }
 }
 



Mime
View raw message