Changeset 161461 in webkit


Ignore:
Timestamp:
Jan 7, 2014 4:04:27 PM (10 years ago)
Author:
Lucas Forschler
Message:

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):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json

    r161423 r161461  
    2121                    { "name": "apple-mini-178", "platform": "mac-mavericks"},
    2222                    { "name": "apple-mini-179", "platform": "mac-mavericks"},
     23                    { "name": "apple-mini-180", "platform": "mac-mavericks"},
    2324                    { "name": "apple-mini-211", "platform": "mac-mavericks" },
    2425                    { "name": "apple-mini-212", "platform": "mac-mavericks" },
     
    9394                      "slavenames": ["apple-mini-142", "apple-mini-211"]
    9495                    },
     96                    { "name": "Apple Mavericks CLOOP (BuildAndTest)", "type": "BuildAndTestCLOOP", "builddir": "mavericks-debug",
     97                      "platform": "mac-mavericks", "configuration": "debug", "architectures": ["x86_64"],
     98                      "slavenames": ["apple-mini-180"]
     99                    },
    95100                    { "name": "Apple Mavericks Release (Build)", "type": "Build", "builddir": "mavericks-release",
    96101                      "platform": "mac-mavericks", "configuration": "release", "architectures": ["x86_64"],
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg

    r161423 r161461  
    224224            if errors:
    225225                self.addCompleteLog('errors', "".join(errors))
     226
     227
     228class CompileCLOOP(CompileWebKit):
     229    command = ["perl", "./Tools/Scripts/build-jsc", "--cloop", WithProperties("--%(configuration)s")]
    226230
    227231
     
    545549        # We're looking for the line that looks like this: Failed 2/19 test programs. 5/363 subtests failed.
    546550        regex = re.compile(r'^Failed \d+/\d+ test programs\. (?P<count>\d+)/\d+ subtests failed\.')
     551        for line in logText.splitlines():
     552            match = regex.match(line)
     553            if not match:
     554                continue
     555            return int(match.group('count'))
     556        return 0
     557
     558
     559class RunCLOOPTests(TestWithFailureCount):
     560    name = "webkit-jsc-cloop-test"
     561    description = ["cloop-tests running"]
     562    descriptionDone = ["cloop-tests"]
     563    command = ["perl", "./Tools/Scripts/run-javascriptcore-tests", "--cloop", "--no-build", "--no-jsc-stress", WithProperties("--%(configuration)s")]
     564    failedTestsFormatString = "%d regressions found."
     565
     566    def countFailures(self, cmd):
     567        logText = cmd.logs['stdio'].getText()
     568        # We're looking for the line that looks like this: 0 regressions found.\n0 tests fixed.
     569        regex = re.compile(r'(?P<count>\d+) regressions found.')
    547570        for line in logText.splitlines():
    548571            match = regex.match(line)
     
    816839            self.addStep(trigger.Trigger(schedulerNames=triggers))
    817840
     841class BuildAndTestCLOOP(BuildAndTestFactory):
     842    CompileClass = CompileCLOOP
     843    LayoutTestClass = RunCLOOPTests
     844
    818845class BuildAndTestWebKit2Factory(BuildAndTestFactory):
    819846    CompileClass = CompileWebKit
  • trunk/Tools/ChangeLog

    r161459 r161461  
     12014-01-07  Lucas Forschler  <lforschler@apple.com>
     2
     3        Add buildbot infrasctructure for building and testing JSC cloop
     4        https://bugs.webkit.org/show_bug.cgi?id=126604
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * BuildSlaveSupport/build.webkit.org-config/config.json:
     9        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     10        (CompileCLOOP):
     11        (RunCLOOPTests):
     12        (RunCLOOPTests.countFailures):
     13        (BuildAndTestCLOOP):
     14
    1152014-01-07  Brian Burg  <bburg@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.