geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jawar...@apache.org
Subject svn commit: r728616 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy
Date Mon, 22 Dec 2008 05:50:46 GMT
Author: jawarner
Date: Sun Dec 21 21:50:46 2008
New Revision: 728616

URL: http://svn.apache.org/viewvc?rev=728616&view=rev
Log:
Generate a generic runtests.properties to get reporting working for now

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.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?rev=728616&r1=728615&r2=728616&view=diff
==============================================================================
--- 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
Sun Dec 21 21:50:46 2008
@@ -350,7 +350,29 @@
     
     def collectResults = {
         def workflowId = params.require('anthill.workflow.id')
-        def iteration = params.require('test')
+        def test = params.require('test')
+        
+        
+        // HACK:  The current iteration of the automation doesn't use the harness
+        //        to actually run the tests, so no runtests.properties file is create.
+        //        Create a basic file using information passed from AHP so reporting works
+        
+        def webcontainer = params.require('webcontainer')
+        def iteration = params.require('iteration')
+        
+        
+        def cfg = new IterationConfigurator()
+        cfg.configFile = 'tck-testsuite/iterations.xml'
+        cfg.iteration = iteration
+        cfg.applyTo = [ 'tests' ]
+        cfg.apply(params)
+        
+        def args = []
+        
+        args << "--web"
+        args << webcontainer
+        
+        args << params.require('tests')
         
         def sourceDir = new File('tck-testsuite/target').canonicalFile
         log.info "Source dir: $sourceDir"
@@ -366,7 +388,7 @@
         // FIXME: Need to handle logs for retries....
         //
         
-        ant.zip(destfile: "$targetDir/runtests-results-${iteration}.zip") {
+        ant.zip(destfile: "$targetDir/runtests-results-${test}.zip") {
             zipfileset(dir: 'target') {
                 include(name: 'runtests.properties')
                 include(name: 'ts.jte')



Mime
View raw message