<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[190371] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/190371">190371</a></dd>
<dt>Author</dt> <dd>dbates@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-30 16:03:28 -0700 (Wed, 30 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add iOS criterion for triggering a build
https://bugs.webkit.org/show_bug.cgi?id=149679

Rubber-stamped by Alexey Proskuryakov.

First pass at defining criterion for triggering an iOS build.

* BuildSlaveSupport/build.webkit.org-config/wkbuild.py:
(_should_file_trigger_build):
* BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
(ShouldBuildTest):
(ShouldBuildTest.test_should_build):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigwkbuildpy">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild.py</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigwkbuild_unittestpy">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigwkbuildpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild.py (190370 => 190371)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild.py        2015-09-30 22:28:08 UTC (rev 190370)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild.py        2015-09-30 23:03:28 UTC (rev 190371)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx">     # and start using it for their bots. Someone familiar with each platform
</span><span class="cx">     # will have to figure out what the right set of directories/patterns is for
</span><span class="cx">     # that platform.
</span><del>-    assert(target_platform in (&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;))
</del><ins>+    assert(target_platform in (&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;))
</ins><span class="cx"> 
</span><span class="cx">     directories = [
</span><span class="cx">         # Directories that shouldn't trigger builds on any bots.
</span><span class="lines">@@ -47,29 +47,32 @@
</span><span class="cx">         (&quot;Tools/BuildSlaveSupport/build.webkit.org-config/public_html&quot;, []),
</span><span class="cx">         (&quot;Websites&quot;, []),
</span><span class="cx">         (&quot;efl&quot;, []),
</span><del>-        (&quot;ios&quot;, []),
</del><span class="cx">         (&quot;opengl&quot;, []),
</span><span class="cx">         (&quot;opentype&quot;, []),
</span><span class="cx">         (&quot;openvg&quot;, []),
</span><span class="cx">         (&quot;wx&quot;, []),
</span><span class="cx"> 
</span><span class="cx">         # Directories that should trigger builds on only some bots.
</span><ins>+        (&quot;LayoutTests/platform/ios-simulator&quot;, [&quot;ios&quot;]),
+        (&quot;LayoutTests/platform/ios-simulator-wk1&quot;, [&quot;ios&quot;]),
+        (&quot;LayoutTests/platform/ios-simulator-wk2&quot;, [&quot;ios&quot;]),
</ins><span class="cx">         (&quot;LayoutTests/platform/mac-mavericks&quot;, [&quot;mac-mavericks&quot;]),
</span><span class="cx">         (&quot;LayoutTests/platform/mac-yosemite&quot;, [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;]),
</span><span class="cx">         (&quot;LayoutTests/platform/mac-elcapitan&quot;, [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         (&quot;LayoutTests/platform/mac-wk2&quot;, [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         (&quot;LayoutTests/platform/mac-wk1&quot;, [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         (&quot;LayoutTests/platform/mac&quot;, [&quot;mac&quot;, &quot;win&quot;]),
</span><del>-        (&quot;LayoutTests/platform/wk2&quot;, [&quot;mac&quot;]),
</del><ins>+        (&quot;LayoutTests/platform/wk2&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
</ins><span class="cx">         (&quot;cairo&quot;, [&quot;gtk&quot;, &quot;wincairo&quot;]),
</span><del>-        (&quot;cf&quot;, [&quot;mac&quot;, &quot;win&quot;]),
-        (&quot;cocoa&quot;, [&quot;mac&quot;]),
</del><ins>+        (&quot;cf&quot;, [&quot;mac&quot;, &quot;win&quot;, &quot;ios&quot;]),
+        (&quot;cocoa&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
</ins><span class="cx">         (&quot;curl&quot;, [&quot;gtk&quot;, &quot;wincairo&quot;]),
</span><span class="cx">         (&quot;gobject&quot;, [&quot;gtk&quot;]),
</span><span class="cx">         (&quot;gstreamer&quot;, [&quot;gtk&quot;]),
</span><span class="cx">         (&quot;gtk&quot;, [&quot;gtk&quot;]),
</span><ins>+        (&quot;ios&quot;, [&quot;ios&quot;]),
</ins><span class="cx">         (&quot;mac&quot;, [&quot;mac&quot;]),
</span><del>-        (&quot;objc&quot;, [&quot;mac&quot;]),
</del><ins>+        (&quot;objc&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
</ins><span class="cx">         (&quot;soup&quot;, [&quot;gtk&quot;]),
</span><span class="cx">         (&quot;win&quot;, [&quot;win&quot;]),
</span><span class="cx">     ]
</span><span class="lines">@@ -87,12 +90,13 @@
</span><span class="cx">         # Patterns that should trigger builds on only some bots.
</span><span class="cx">         (r&quot;(?:^|/)PlatformGTK\.cmake$&quot;, [&quot;gtk&quot;]),
</span><span class="cx">         (r&quot;Mac\.(?:cpp|h|mm)$&quot;, [&quot;mac&quot;]),
</span><ins>+        (r&quot;IOS\.(?:cpp|h|mm)$&quot;, [&quot;ios&quot;]),
</ins><span class="cx">         (r&quot;\.(?:vcproj|vsprops|sln|vcxproj|props|filters)$&quot;, [&quot;win&quot;]),
</span><del>-        (r&quot;\.exp(?:\.in)?$&quot;, [&quot;mac&quot;]),
-        (r&quot;\.order$&quot;, [&quot;mac&quot;]),
</del><ins>+        (r&quot;\.exp(?:\.in)?$&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
+        (r&quot;\.order$&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
</ins><span class="cx">         (r&quot;\.(?:vcproj|vcxproj)/&quot;, [&quot;win&quot;]),
</span><del>-        (r&quot;\.xcconfig$&quot;, [&quot;mac&quot;]),
-        (r&quot;\.xcodeproj/&quot;, [&quot;mac&quot;]),
</del><ins>+        (r&quot;\.xcconfig$&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
+        (r&quot;\.xcodeproj/&quot;, [&quot;mac&quot;, &quot;ios&quot;]),
</ins><span class="cx">     ]
</span><span class="cx"> 
</span><span class="cx">     base_platform = target_platform.split(&quot;-&quot;)[0]
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigwkbuild_unittestpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py (190370 => 190371)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py        2015-09-30 22:28:08 UTC (rev 190370)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py        2015-09-30 23:03:28 UTC (rev 190371)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-# Copyright (C) 2010 Apple Inc. All rights reserved.
</del><ins>+# Copyright (C) 2010, 2015 Apple Inc. All rights reserved.
</ins><span class="cx"> #
</span><span class="cx"> # Redistribution and use in source and binary forms, with or without
</span><span class="cx"> # modification, are permitted provided that the following conditions
</span><span class="lines">@@ -29,7 +29,8 @@
</span><span class="cx">         ([&quot;ChangeLog&quot;, &quot;Source/WebCore/ChangeLog&quot;, &quot;Source/WebKit2/ChangeLog-2011-02-11&quot;], []),
</span><span class="cx">         ([&quot;Websites/bugs.webkit.org/foo&quot;, &quot;Source/WebCore/bar&quot;], [&quot;*&quot;]),
</span><span class="cx">         ([&quot;Websites/bugs.webkit.org/foo&quot;], []),
</span><del>-        ([&quot;Source/JavaScriptCore/JavaScriptCore.xcodeproj/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</del><ins>+        ([&quot;Source/JavaScriptCore/JavaScriptCore.xcodeproj/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;Source/JavaScriptCore/Configurations/Base.xcconfig&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Source/JavaScriptCore/JavaScriptCore.vcproj/foo&quot;, &quot;Source/WebKit2/win/WebKit2.vcproj&quot;, &quot;Source/WebKit/win/WebKit.sln&quot;, &quot;Tools/WebKitTestRunner/Configurations/WebKitTestRunnerCommon.vsprops&quot;], [&quot;win&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/mac/foo&quot;, &quot;Source/WebCore/bar&quot;], [&quot;*&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/foo&quot;], [&quot;*&quot;]),
</span><span class="lines">@@ -37,7 +38,10 @@
</span><span class="cx">         ([&quot;LayoutTests/platform/mac-mavericks/foo&quot;], [&quot;mac-mavericks&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/mac-yosemite/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/mac-elcapitan/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><del>-        ([&quot;LayoutTests/platform/wk2/Skipped&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</del><ins>+        ([&quot;LayoutTests/platform/ios-simulator/foo&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;LayoutTests/platform/ios-simulator-wk1/foo&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;LayoutTests/platform/ios-simulator-wk2/foo&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;LayoutTests/platform/wk2/Skipped&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;LayoutTests/platform/mac-wk2/Skipped&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/mac-wk1/compositing/tiling/transform-origin-tiled-expected.txt&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/mac/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;]),
</span><span class="lines">@@ -45,12 +49,19 @@
</span><span class="cx">         ([&quot;LayoutTests/platform/win-xp/foo&quot;], [&quot;win&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/win-wk1/foo&quot;], [&quot;win&quot;]),
</span><span class="cx">         ([&quot;LayoutTests/platform/win/foo&quot;], [&quot;win&quot;]),
</span><ins>+        ([&quot;LayoutTests/platform/spi/cocoa/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;LayoutTests/platform/spi/cf/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Source/WebKit/mac/WebKit.mac.exp&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><ins>+        ([&quot;Source/WebKit/ios/WebKit.iOS.exp&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;Source/Dummy/foo.exp&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
+        ([&quot;Source/WebCore/ios/foo&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Source/WebCore/mac/foo&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><span class="cx">         ([&quot;Source/WebCore/win/foo&quot;], [&quot;win&quot;]),
</span><ins>+        ([&quot;Source/WebCore/bridge/objc/objc_class.mm&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Source/WebCore/platform/wx/wxcode/win/foo&quot;], []),
</span><del>-        ([&quot;Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm&quot;], []),
</del><ins>+        ([&quot;Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Source/WebCore/rendering/RenderThemeMac.mm&quot;, &quot;Source/WebCore/rendering/RenderThemeMac.h&quot;], [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;]),
</span><ins>+        ([&quot;Source/WebCore/rendering/RenderThemeIOS.mm&quot;, &quot;Source/WebCore/rendering/RenderThemeIOS.h&quot;], [&quot;ios-9&quot;, &quot;ios-simulator-9&quot;]),
</ins><span class="cx">         ([&quot;Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js&quot;], []),
</span><span class="cx">     ]
</span><span class="cx"> 
</span><span class="lines">@@ -58,7 +69,7 @@
</span><span class="cx">         for files, platforms in self._should_build_tests:
</span><span class="cx">             # FIXME: We should test more platforms here once
</span><span class="cx">             # wkbuild._should_file_trigger_build is implemented for them.
</span><del>-            for platform in [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;]:
</del><ins>+            for platform in [&quot;mac-mavericks&quot;, &quot;mac-yosemite&quot;, &quot;mac-elcapitan&quot;, &quot;win&quot;, &quot;ios-9&quot;, &quot;ios-simulator-9&quot;]:
</ins><span class="cx">                 should_build = platform in platforms or &quot;*&quot; in platforms
</span><span class="cx">                 self.assertEqual(wkbuild.should_build(platform, files), should_build, &quot;%s should%s have built but did%s (files: %s)&quot; % (platform, &quot;&quot; if should_build else &quot;n't&quot;, &quot;n't&quot; if should_build else &quot;&quot;, str(files)))
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (190370 => 190371)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-09-30 22:28:08 UTC (rev 190370)
+++ trunk/Tools/ChangeLog        2015-09-30 23:03:28 UTC (rev 190371)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2015-09-30  Daniel Bates  &lt;dabates@apple.com&gt;
+
+        Add iOS criterion for triggering a build
+        https://bugs.webkit.org/show_bug.cgi?id=149679
+
+        Rubber-stamped by Alexey Proskuryakov.
+
+        First pass at defining criterion for triggering an iOS build.
+
+        * BuildSlaveSupport/build.webkit.org-config/wkbuild.py:
+        (_should_file_trigger_build):
+        * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
+        (ShouldBuildTest):
+        (ShouldBuildTest.test_should_build):
+
</ins><span class="cx"> 2015-09-29  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] Allow tests to generate user gestures for UI testing
</span></span></pre>
</div>
</div>

</body>
</html>