| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'gsutil', | 8 'gsutil', |
| 9 'recipe_engine/path', | 9 'recipe_engine/path', |
| 10 'recipe_engine/properties', | 10 'recipe_engine/properties', |
| 11 'recipe_engine/step', | 11 'recipe_engine/step', |
| 12 ] | 12 ] |
| 13 | 13 |
| 14 def win_xp_dr_nightly_steps(api): | 14 def win_xp_dr_nightly_steps(api): |
| 15 build_properties = api.properties.legacy() | 15 build_properties = api.properties.legacy() |
| 16 # checkout DynamiRIO step | 16 # checkout DynamiRIO step |
| 17 src_cfg = api.gclient.make_config() | 17 src_cfg = api.gclient.make_config() |
| 18 soln = src_cfg.solutions.add() | 18 soln = src_cfg.solutions.add() |
| 19 soln.name = "dynamorio" | 19 soln.name = "dynamorio" |
| 20 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 20 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 21 soln.custom_deps = {'dynamorio/tools/buildbot': | 21 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 22 'https://github.com/DynamoRIO/buildbot.git'} | 22 'https://github.com/DynamoRIO/buildbot.git'} |
| 23 api.gclient.c = src_cfg | 23 api.gclient.c = src_cfg |
| 24 result = api.bot_update.ensure_checkout(force=True) | 24 result = api.bot_update.ensure_checkout() |
| 25 build_properties.update(result.json.output.get("properties", {})) | 25 build_properties.update(result.json.output.get("properties", {})) |
| 26 # unpack tools step; generic ShellCommand converted | 26 # unpack tools step; generic ShellCommand converted |
| 27 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 27 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 28 'bot_tools', 'unpack.bat')], env={}, | 28 'bot_tools', 'unpack.bat')], env={}, |
| 29 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 29 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 30 # dynamorio win nightly suite step | 30 # dynamorio win nightly suite step |
| 31 api.step("nightly suite", | 31 api.step("nightly suite", |
| 32 [api.path["build"].join("scripts", "slave", "drmemory", "build_env.bat"), | 32 [api.path["build"].join("scripts", "slave", "drmemory", "build_env.bat"), |
| 33 'ctest', '--timeout', '120', '-VV', '-S', | 33 'ctest', '--timeout', '120', '-VV', '-S', |
| 34 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ | 34 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ |
| 35 'site=X64.WindowsXp.VS2010.BuildBot'], | 35 'site=X64.WindowsXp.VS2010.BuildBot'], |
| 36 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 36 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 37 "bot_tools")}, cwd=api.path["slave_build"]) | 37 "bot_tools")}, cwd=api.path["slave_build"]) |
| 38 | 38 |
| 39 | 39 |
| 40 def linux_dr_steps(api): | 40 def linux_dr_steps(api): |
| 41 build_properties = api.properties.legacy() | 41 build_properties = api.properties.legacy() |
| 42 # checkout DynamiRIO step | 42 # checkout DynamiRIO step |
| 43 src_cfg = api.gclient.make_config() | 43 src_cfg = api.gclient.make_config() |
| 44 soln = src_cfg.solutions.add() | 44 soln = src_cfg.solutions.add() |
| 45 soln.name = "dynamorio" | 45 soln.name = "dynamorio" |
| 46 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 46 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 47 api.gclient.c = src_cfg | 47 api.gclient.c = src_cfg |
| 48 result = api.bot_update.ensure_checkout(force=True) | 48 result = api.bot_update.ensure_checkout() |
| 49 build_properties.update(result.json.output.get("properties", {})) | 49 build_properties.update(result.json.output.get("properties", {})) |
| 50 # pre-commit suite step | 50 # pre-commit suite step |
| 51 api.step("pre-commit suite", ['ctest', '--timeout', '120', '-VV', '-S', | 51 api.step("pre-commit suite", ['ctest', '--timeout', '120', '-VV', '-S', |
| 52 api.path["checkout"].join("suite", "runsuite.cmake")], | 52 api.path["checkout"].join("suite", "runsuite.cmake")], |
| 53 cwd=api.path["slave_build"], ok_ret="all") | 53 cwd=api.path["slave_build"], ok_ret="all") |
| 54 # upload dynamorio docs step | 54 # upload dynamorio docs step |
| 55 api.gsutil.upload(api.path["slave_build"].join("install", "docs", "html"), | 55 api.gsutil.upload(api.path["slave_build"].join("install", "docs", "html"), |
| 56 "chromium-dynamorio", "dr_docs/", ["-r"], multithreaded=True) | 56 "chromium-dynamorio", "dr_docs/", ["-r"], multithreaded=True) |
| 57 | 57 |
| 58 | 58 |
| 59 def win_7_dr_steps(api): | 59 def win_7_dr_steps(api): |
| 60 build_properties = api.properties.legacy() | 60 build_properties = api.properties.legacy() |
| 61 # checkout DynamiRIO step | 61 # checkout DynamiRIO step |
| 62 src_cfg = api.gclient.make_config() | 62 src_cfg = api.gclient.make_config() |
| 63 soln = src_cfg.solutions.add() | 63 soln = src_cfg.solutions.add() |
| 64 soln.name = "dynamorio" | 64 soln.name = "dynamorio" |
| 65 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 65 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 66 soln.custom_deps = {'dynamorio/tools/buildbot': | 66 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 67 'https://github.com/DynamoRIO/buildbot.git'} | 67 'https://github.com/DynamoRIO/buildbot.git'} |
| 68 api.gclient.c = src_cfg | 68 api.gclient.c = src_cfg |
| 69 result = api.bot_update.ensure_checkout(force=True) | 69 result = api.bot_update.ensure_checkout() |
| 70 build_properties.update(result.json.output.get("properties", {})) | 70 build_properties.update(result.json.output.get("properties", {})) |
| 71 # unpack tools step; generic ShellCommand converted | 71 # unpack tools step; generic ShellCommand converted |
| 72 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 72 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 73 'bot_tools', 'unpack.bat')], env={}, | 73 'bot_tools', 'unpack.bat')], env={}, |
| 74 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 74 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 75 # build_env step | 75 # build_env step |
| 76 api.step("pre-commit suite", [api.path["build"].join("scripts", "slave", | 76 api.step("pre-commit suite", [api.path["build"].join("scripts", "slave", |
| 77 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', | 77 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', |
| 78 api.path["checkout"].join("suite", "runsuite.cmake")], | 78 api.path["checkout"].join("suite", "runsuite.cmake")], |
| 79 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 79 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 80 "bot_tools")}, cwd=api.path["slave_build"]) | 80 "bot_tools")}, cwd=api.path["slave_build"]) |
| 81 | 81 |
| 82 | 82 |
| 83 def linux_dr_package_steps(api): | 83 def linux_dr_package_steps(api): |
| 84 build_properties = api.properties.legacy() | 84 build_properties = api.properties.legacy() |
| 85 # checkout DynamiRIO step | 85 # checkout DynamiRIO step |
| 86 src_cfg = api.gclient.make_config() | 86 src_cfg = api.gclient.make_config() |
| 87 soln = src_cfg.solutions.add() | 87 soln = src_cfg.solutions.add() |
| 88 soln.name = "dynamorio" | 88 soln.name = "dynamorio" |
| 89 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 89 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 90 api.gclient.c = src_cfg | 90 api.gclient.c = src_cfg |
| 91 result = api.bot_update.ensure_checkout(force=True) | 91 result = api.bot_update.ensure_checkout() |
| 92 build_properties.update(result.json.output.get("properties", {})) | 92 build_properties.update(result.json.output.get("properties", {})) |
| 93 # get buildnumber step; no longer needed | 93 # get buildnumber step; no longer needed |
| 94 # Package DynamoRIO step | 94 # Package DynamoRIO step |
| 95 api.step("Package DynamoRIO", ["ctest", "-VV", "-S", | 95 api.step("Package DynamoRIO", ["ctest", "-VV", "-S", |
| 96 str(api.path["checkout"].join("make", "package.cmake")) + ",build=0x" + | 96 str(api.path["checkout"].join("make", "package.cmake")) + ",build=0x" + |
| 97 build_properties["got_revision"][:7]]) | 97 build_properties["got_revision"][:7]]) |
| 98 # find package file step; no longer necessary | 98 # find package file step; no longer necessary |
| 99 # upload dynamorio package | 99 # upload dynamorio package |
| 100 api.gsutil.upload("DynamoRIO-Linux-*" + | 100 api.gsutil.upload("DynamoRIO-Linux-*" + |
| 101 build_properties["got_revision"][:7] + | 101 build_properties["got_revision"][:7] + |
| 102 ".tar.gz", "chromium-dynamorio", "builds/") | 102 ".tar.gz", "chromium-dynamorio", "builds/") |
| 103 | 103 |
| 104 | 104 |
| 105 def win_8_dr_steps(api): | 105 def win_8_dr_steps(api): |
| 106 build_properties = api.properties.legacy() | 106 build_properties = api.properties.legacy() |
| 107 # checkout DynamiRIO step | 107 # checkout DynamiRIO step |
| 108 src_cfg = api.gclient.make_config() | 108 src_cfg = api.gclient.make_config() |
| 109 soln = src_cfg.solutions.add() | 109 soln = src_cfg.solutions.add() |
| 110 soln.name = "dynamorio" | 110 soln.name = "dynamorio" |
| 111 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 111 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 112 soln.custom_deps = {'dynamorio/tools/buildbot': | 112 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 113 'https://github.com/DynamoRIO/buildbot.git'} | 113 'https://github.com/DynamoRIO/buildbot.git'} |
| 114 api.gclient.c = src_cfg | 114 api.gclient.c = src_cfg |
| 115 result = api.bot_update.ensure_checkout(force=True) | 115 result = api.bot_update.ensure_checkout() |
| 116 build_properties.update(result.json.output.get("properties", {})) | 116 build_properties.update(result.json.output.get("properties", {})) |
| 117 # unpack tools step; generic ShellCommand converted | 117 # unpack tools step; generic ShellCommand converted |
| 118 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 118 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 119 'bot_tools', 'unpack.bat')], env={}, | 119 'bot_tools', 'unpack.bat')], env={}, |
| 120 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 120 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 121 # build_env step | 121 # build_env step |
| 122 api.step("pre-commit suite", | 122 api.step("pre-commit suite", |
| 123 [api.path["build"].join("scripts", "slave", "drmemory", "build_env.bat"), | 123 [api.path["build"].join("scripts", "slave", "drmemory", "build_env.bat"), |
| 124 'ctest', '--timeout', '120', '-VV', '-S', | 124 'ctest', '--timeout', '120', '-VV', '-S', |
| 125 api.path["checkout"].join("suite", "runsuite.cmake")], | 125 api.path["checkout"].join("suite", "runsuite.cmake")], |
| 126 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 126 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 127 "bot_tools")}, cwd=api.path["slave_build"]) | 127 "bot_tools")}, cwd=api.path["slave_build"]) |
| 128 | 128 |
| 129 | 129 |
| 130 def win_xp_dr_steps(api): | 130 def win_xp_dr_steps(api): |
| 131 build_properties = api.properties.legacy() | 131 build_properties = api.properties.legacy() |
| 132 # checkout DynamiRIO step | 132 # checkout DynamiRIO step |
| 133 src_cfg = api.gclient.make_config() | 133 src_cfg = api.gclient.make_config() |
| 134 soln = src_cfg.solutions.add() | 134 soln = src_cfg.solutions.add() |
| 135 soln.name = "dynamorio" | 135 soln.name = "dynamorio" |
| 136 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 136 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 137 soln.custom_deps = {'dynamorio/tools/buildbot': | 137 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 138 'https://github.com/DynamoRIO/buildbot.git'} | 138 'https://github.com/DynamoRIO/buildbot.git'} |
| 139 api.gclient.c = src_cfg | 139 api.gclient.c = src_cfg |
| 140 result = api.bot_update.ensure_checkout(force=True) | 140 result = api.bot_update.ensure_checkout() |
| 141 build_properties.update(result.json.output.get("properties", {})) | 141 build_properties.update(result.json.output.get("properties", {})) |
| 142 # unpack tools step; generic ShellCommand converted | 142 # unpack tools step; generic ShellCommand converted |
| 143 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 143 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 144 'bot_tools', 'unpack.bat')], env={}, | 144 'bot_tools', 'unpack.bat')], env={}, |
| 145 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 145 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 146 # build_env step | 146 # build_env step |
| 147 api.step("pre-commit suite", [api.path["build"].join("scripts", "slave", | 147 api.step("pre-commit suite", [api.path["build"].join("scripts", "slave", |
| 148 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', | 148 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', |
| 149 api.path["checkout"].join("suite", "runsuite.cmake")], | 149 api.path["checkout"].join("suite", "runsuite.cmake")], |
| 150 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 150 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 151 "bot_tools")}, cwd=api.path["slave_build"]) | 151 "bot_tools")}, cwd=api.path["slave_build"]) |
| 152 | 152 |
| 153 | 153 |
| 154 def win_7_dr_nightly_steps(api): | 154 def win_7_dr_nightly_steps(api): |
| 155 build_properties = api.properties.legacy() | 155 build_properties = api.properties.legacy() |
| 156 # checkout DynamiRIO step | 156 # checkout DynamiRIO step |
| 157 src_cfg = api.gclient.make_config() | 157 src_cfg = api.gclient.make_config() |
| 158 soln = src_cfg.solutions.add() | 158 soln = src_cfg.solutions.add() |
| 159 soln.name = "dynamorio" | 159 soln.name = "dynamorio" |
| 160 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 160 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 161 soln.custom_deps = {'dynamorio/tools/buildbot': | 161 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 162 'https://github.com/DynamoRIO/buildbot.git'} | 162 'https://github.com/DynamoRIO/buildbot.git'} |
| 163 api.gclient.c = src_cfg | 163 api.gclient.c = src_cfg |
| 164 result = api.bot_update.ensure_checkout(force=True) | 164 result = api.bot_update.ensure_checkout() |
| 165 build_properties.update(result.json.output.get("properties", {})) | 165 build_properties.update(result.json.output.get("properties", {})) |
| 166 # unpack tools step; generic ShellCommand converted | 166 # unpack tools step; generic ShellCommand converted |
| 167 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 167 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 168 'bot_tools', 'unpack.bat')], env={}, | 168 'bot_tools', 'unpack.bat')], env={}, |
| 169 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 169 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 170 # dynamorio win nightly suite step | 170 # dynamorio win nightly suite step |
| 171 api.step("nightly suite", [api.path["build"].join("scripts", "slave", | 171 api.step("nightly suite", [api.path["build"].join("scripts", "slave", |
| 172 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', | 172 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', |
| 173 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ | 173 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ |
| 174 'site=X64.Windows7.VS2010.BuildBot'], | 174 'site=X64.Windows7.VS2010.BuildBot'], |
| 175 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 175 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 176 "bot_tools")}, cwd=api.path["slave_build"]) | 176 "bot_tools")}, cwd=api.path["slave_build"]) |
| 177 | 177 |
| 178 | 178 |
| 179 def win_8_dr_nightly_steps(api): | 179 def win_8_dr_nightly_steps(api): |
| 180 build_properties = api.properties.legacy() | 180 build_properties = api.properties.legacy() |
| 181 # checkout DynamiRIO step | 181 # checkout DynamiRIO step |
| 182 src_cfg = api.gclient.make_config() | 182 src_cfg = api.gclient.make_config() |
| 183 soln = src_cfg.solutions.add() | 183 soln = src_cfg.solutions.add() |
| 184 soln.name = "dynamorio" | 184 soln.name = "dynamorio" |
| 185 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 185 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 186 soln.custom_deps = {'dynamorio/tools/buildbot': | 186 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 187 'https://github.com/DynamoRIO/buildbot.git'} | 187 'https://github.com/DynamoRIO/buildbot.git'} |
| 188 api.gclient.c = src_cfg | 188 api.gclient.c = src_cfg |
| 189 result = api.bot_update.ensure_checkout(force=True) | 189 result = api.bot_update.ensure_checkout() |
| 190 build_properties.update(result.json.output.get("properties", {})) | 190 build_properties.update(result.json.output.get("properties", {})) |
| 191 # unpack tools step; generic ShellCommand converted | 191 # unpack tools step; generic ShellCommand converted |
| 192 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 192 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 193 'bot_tools', 'unpack.bat')], env={}, | 193 'bot_tools', 'unpack.bat')], env={}, |
| 194 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 194 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 195 # dynamorio win nightly suite step | 195 # dynamorio win nightly suite step |
| 196 api.step("nightly suite", [api.path["build"].join("scripts", "slave", | 196 api.step("nightly suite", [api.path["build"].join("scripts", "slave", |
| 197 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', | 197 "drmemory", "build_env.bat"), 'ctest', '--timeout', '120', '-VV', '-S', |
| 198 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ | 198 'dynamorio/suite/runsuite.cmake,nightly;long;'+\ |
| 199 'site=X64.Windows8.VS2010.BuildBot'], | 199 'site=X64.Windows8.VS2010.BuildBot'], |
| 200 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 200 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 201 "bot_tools")}, cwd=api.path["slave_build"]) | 201 "bot_tools")}, cwd=api.path["slave_build"]) |
| 202 | 202 |
| 203 | 203 |
| 204 def win_dr_package_steps(api): | 204 def win_dr_package_steps(api): |
| 205 build_properties = api.properties.legacy() | 205 build_properties = api.properties.legacy() |
| 206 # checkout DynamiRIO step | 206 # checkout DynamiRIO step |
| 207 src_cfg = api.gclient.make_config() | 207 src_cfg = api.gclient.make_config() |
| 208 soln = src_cfg.solutions.add() | 208 soln = src_cfg.solutions.add() |
| 209 soln.name = "dynamorio" | 209 soln.name = "dynamorio" |
| 210 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 210 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 211 soln.custom_deps = {'dynamorio/tools/buildbot': | 211 soln.custom_deps = {'dynamorio/tools/buildbot': |
| 212 'https://github.com/DynamoRIO/buildbot.git'} | 212 'https://github.com/DynamoRIO/buildbot.git'} |
| 213 api.gclient.c = src_cfg | 213 api.gclient.c = src_cfg |
| 214 result = api.bot_update.ensure_checkout(force=True) | 214 result = api.bot_update.ensure_checkout() |
| 215 build_properties.update(result.json.output.get("properties", {})) | 215 build_properties.update(result.json.output.get("properties", {})) |
| 216 # unpack tools step; generic ShellCommand converted | 216 # unpack tools step; generic ShellCommand converted |
| 217 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', | 217 api.step("unpack tools", [api.path["checkout"].join('tools', 'buildbot', |
| 218 'bot_tools', 'unpack.bat')], env={}, | 218 'bot_tools', 'unpack.bat')], env={}, |
| 219 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) | 219 cwd=api.path["checkout"].join('tools', 'buildbot', 'bot_tools')) |
| 220 # get buildnumber step; no longer needed | 220 # get buildnumber step; no longer needed |
| 221 # Package DynamoRIO step | 221 # Package DynamoRIO step |
| 222 api.step("Package DynamoRIO", [api.path["build"].join("scripts", "slave", | 222 api.step("Package DynamoRIO", [api.path["build"].join("scripts", "slave", |
| 223 "drmemory", "build_env.bat"), "ctest", "-VV", "-S", | 223 "drmemory", "build_env.bat"), "ctest", "-VV", "-S", |
| 224 str(api.path["checkout"].join("make", "package.cmake")) + ",build=0x" + | 224 str(api.path["checkout"].join("make", "package.cmake")) + ",build=0x" + |
| 225 build_properties["got_revision"][:7]], | 225 build_properties["got_revision"][:7]], |
| 226 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", | 226 env={"BOTTOOLS": api.path["checkout"].join("tools", "buildbot", |
| 227 "bot_tools")}) | 227 "bot_tools")}) |
| 228 # find package file step; no longer necessary | 228 # find package file step; no longer necessary |
| 229 # upload dynamorio package | 229 # upload dynamorio package |
| 230 api.gsutil.upload("DynamoRIO-Windows-*" + | 230 api.gsutil.upload("DynamoRIO-Windows-*" + |
| 231 build_properties["got_revision"][:7] | 231 build_properties["got_revision"][:7] |
| 232 + ".zip", "chromium-dynamorio", "builds/") | 232 + ".zip", "chromium-dynamorio", "builds/") |
| 233 | 233 |
| 234 | 234 |
| 235 def linux_dr_nightly_steps(api): | 235 def linux_dr_nightly_steps(api): |
| 236 build_properties = api.properties.legacy() | 236 build_properties = api.properties.legacy() |
| 237 # checkout DynamiRIO step | 237 # checkout DynamiRIO step |
| 238 src_cfg = api.gclient.make_config() | 238 src_cfg = api.gclient.make_config() |
| 239 soln = src_cfg.solutions.add() | 239 soln = src_cfg.solutions.add() |
| 240 soln.name = "dynamorio" | 240 soln.name = "dynamorio" |
| 241 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 241 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 242 api.gclient.c = src_cfg | 242 api.gclient.c = src_cfg |
| 243 result = api.bot_update.ensure_checkout(force=True) | 243 result = api.bot_update.ensure_checkout() |
| 244 build_properties.update(result.json.output.get("properties", {})) | 244 build_properties.update(result.json.output.get("properties", {})) |
| 245 # dynamorio nightly suite step | 245 # dynamorio nightly suite step |
| 246 api.step("nightly suite", ["ctest", "--timeout", "120", "-VV", "-S", | 246 api.step("nightly suite", ["ctest", "--timeout", "120", "-VV", "-S", |
| 247 str(api.path["checkout"].join("suite", "runsuite.cmake")) + | 247 str(api.path["checkout"].join("suite", "runsuite.cmake")) + |
| 248 ",nightly;long;site=X64.Linux.VS2010.BuildBot"]) | 248 ",nightly;long;site=X64.Linux.VS2010.BuildBot"]) |
| 249 | 249 |
| 250 | 250 |
| 251 dispatch_directory = { | 251 dispatch_directory = { |
| 252 'win-xp-dr-nightly': win_xp_dr_nightly_steps, | 252 'win-xp-dr-nightly': win_xp_dr_nightly_steps, |
| 253 'linux-dr': linux_dr_steps, | 253 'linux-dr': linux_dr_steps, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 api.properties(mastername='client.dynamorio') + | 330 api.properties(mastername='client.dynamorio') + |
| 331 api.properties(buildername='linux-dr-nightly') + | 331 api.properties(buildername='linux-dr-nightly') + |
| 332 api.properties(revision='123456789abcdef') + | 332 api.properties(revision='123456789abcdef') + |
| 333 api.properties(slavename='TestSlave') | 333 api.properties(slavename='TestSlave') |
| 334 ) | 334 ) |
| 335 yield (api.test('builder_not_in_dispatch_directory') + | 335 yield (api.test('builder_not_in_dispatch_directory') + |
| 336 api.properties(mastername='client.dynamorio') + | 336 api.properties(mastername='client.dynamorio') + |
| 337 api.properties(buildername='nonexistent_builder') + | 337 api.properties(buildername='nonexistent_builder') + |
| 338 api.properties(slavename='TestSlave') | 338 api.properties(slavename='TestSlave') |
| 339 ) | 339 ) |
| OLD | NEW |