Add buildbot infrasctructure for building and testing JSC cloop
authorlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Jan 2014 00:04:27 +0000 (00:04 +0000)
committerlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Jan 2014 00:04:27 +0000 (00:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=126604

Reviewed by Geoffrey Garen.

* BuildSlaveSupport/build.webkit.org-config/config.json:
* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(CompileCLOOP):
(RunCLOOPTests):
(RunCLOOPTests.countFailures):
(BuildAndTestCLOOP):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161461 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/build.webkit.org-config/config.json
Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
Tools/ChangeLog

index 396df3b7bed7b4708867a17cefad42855aba3b3d..011c093010806ea079b2e45448fc05fe7f600acc 100644 (file)
@@ -20,6 +20,7 @@
                     { "name": "apple-mini-142", "platform": "mac-mavericks"},
                     { "name": "apple-mini-178", "platform": "mac-mavericks"},
                     { "name": "apple-mini-179", "platform": "mac-mavericks"},
+                    { "name": "apple-mini-180", "platform": "mac-mavericks"},
                     { "name": "apple-mini-211", "platform": "mac-mavericks" },
                     { "name": "apple-mini-212", "platform": "mac-mavericks" },
                     { "name": "apple-mini-213", "platform": "mac-mavericks" },
                       "platform": "mac-mavericks", "configuration": "debug", "architectures": ["x86_64"],
                       "slavenames": ["apple-mini-142", "apple-mini-211"]
                     },
+                    { "name": "Apple Mavericks CLOOP (BuildAndTest)", "type": "BuildAndTestCLOOP", "builddir": "mavericks-debug",
+                      "platform": "mac-mavericks", "configuration": "debug", "architectures": ["x86_64"],
+                      "slavenames": ["apple-mini-180"]
+                    },
                     { "name": "Apple Mavericks Release (Build)", "type": "Build", "builddir": "mavericks-release",
                       "platform": "mac-mavericks", "configuration": "release", "architectures": ["x86_64"],
                       "triggers": ["mavericks-release-tests-wk1", "mavericks-release-tests-wk2", "mavericks-release-perf"],
index b8436619a5e39dc54e8f767617664bbc5867ae4f..27f5e315861d20a46a2391ababd63e71aad165bd 100644 (file)
@@ -225,6 +225,10 @@ class CompileWebKit(shell.Compile):
                 self.addCompleteLog('errors', "".join(errors))
 
 
+class CompileCLOOP(CompileWebKit):
+    command = ["perl", "./Tools/Scripts/build-jsc", "--cloop", WithProperties("--%(configuration)s")]
+
+
 class CompileWebKit1Only(CompileWebKit):
     command = ["perl", "./Tools/Scripts/build-webkit", "--no-webkit2", WithProperties("--%(configuration)s")]
 
@@ -552,6 +556,25 @@ class RunPerlTests(TestWithFailureCount):
         return 0
 
 
+class RunCLOOPTests(TestWithFailureCount):
+    name = "webkit-jsc-cloop-test"
+    description = ["cloop-tests running"]
+    descriptionDone = ["cloop-tests"]
+    command = ["perl", "./Tools/Scripts/run-javascriptcore-tests", "--cloop", "--no-build", "--no-jsc-stress", WithProperties("--%(configuration)s")]
+    failedTestsFormatString = "%d regressions found."
+
+    def countFailures(self, cmd):
+        logText = cmd.logs['stdio'].getText()
+        # We're looking for the line that looks like this: 0 regressions found.\n0 tests fixed.
+        regex = re.compile(r'(?P<count>\d+) regressions found.')
+        for line in logText.splitlines():
+            match = regex.match(line)
+            if not match:
+                continue
+            return int(match.group('count'))
+        return 0
+
+
 class RunBindingsTests(shell.Test):
     name = "bindings-generation-tests"
     description = ["bindings-tests running"]
@@ -815,6 +838,10 @@ class BuildAndTestFactory(Factory):
             self.addStep(UploadBuiltProduct())
             self.addStep(trigger.Trigger(schedulerNames=triggers))
 
+class BuildAndTestCLOOP(BuildAndTestFactory):
+    CompileClass = CompileCLOOP
+    LayoutTestClass = RunCLOOPTests
+
 class BuildAndTestWebKit2Factory(BuildAndTestFactory):
     CompileClass = CompileWebKit
     LayoutTestClass = RunWebKit2Tests
index 46266a1fec1e2dfd3f70a5990fc0f92f58dc267b..eeb2bf86097077da1e0725e29d175bd934aac125 100644 (file)
@@ -1,3 +1,17 @@
+2014-01-07  Lucas Forschler  <lforschler@apple.com>
+
+        Add buildbot infrasctructure for building and testing JSC cloop
+        https://bugs.webkit.org/show_bug.cgi?id=126604
+
+        Reviewed by Geoffrey Garen.
+
+        * BuildSlaveSupport/build.webkit.org-config/config.json:
+        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
+        (CompileCLOOP):
+        (RunCLOOPTests):
+        (RunCLOOPTests.countFailures):
+        (BuildAndTestCLOOP):
+
 2014-01-07  Brian Burg  <bburg@apple.com>
 
         Unreviewed. Add myself as a committer.