Support running unit tests on iOS Simulator test bot
[WebKit-https.git] / Tools / BuildSlaveSupport / build.webkit.org-config / master.cfg
index 0599ce8..39c4563 100644 (file)
@@ -428,6 +428,10 @@ class RunUnitTests(TestWithFailureCount):
     command = ["perl", "./Tools/Scripts/run-api-tests", "--no-build", WithProperties("--%(configuration)s"), "--verbose"]
     failedTestsFormatString = "%d unit test%s failed or timed out"
 
+    def start(self):
+        appendCustomBuildFlags(self, self.getProperty('platform'), self.getProperty('fullPlatform'))
+        return shell.Test.start(self)
+
     def countFailures(self, cmd):
         log_text = cmd.logs['stdio'].getText()
         count = 0
@@ -794,7 +798,7 @@ class TestFactory(Factory):
         if self.LayoutTestClass:
             self.addStep(self.LayoutTestClass())
 
-        if platform == 'win' or platform.startswith('mac'):
+        if platform == 'win' or platform.startswith('mac') or platform.startswith('ios-simulator'):
             self.addStep(RunUnitTests())
         self.addStep(RunPythonTests())
         self.addStep(RunPerlTests())