Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: tools/bots/ddc_tests.py

Issue 2490013003: Here's a first draft of a bot script for running the DDC tests. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/ddc_tests.py
diff --git a/tools/bots/ddc_tests.py b/tools/bots/ddc_tests.py
index 73f8f4a6f852198a12863069022b01bd472c6f5a..6799a5bd6806c299d4a4faf6899af42735d27f5f 100644
--- a/tools/bots/ddc_tests.py
+++ b/tools/bots/ddc_tests.py
@@ -21,6 +21,12 @@ BUILD_OS = utils.GuessOS()
CHANNEL = bot_utils.GetChannelFromName(bot_name)
if __name__ == '__main__':
- print "This step should run dartdevc tests"
- print "Current directory when running on a bot should be"
- print "/b/build/slave/[builder name]/build/sdk"
+ with utils.ChangedWorkingDirectory('pkg/dev_compiler'):
+ with bot.BuildStep('npm install'):
+ bot.RunProcess(['npm', 'install'])
+
+ with bot.BuildStep('Compile tests and run unit tests'):
+ bot.RunProcess(['dart', 'test/all_tests.dart'])
Bill Hesse 2016/11/10 18:25:45 You need to say which dart executable you want to
+
+ with bot.BuildStep('Execute compiled tests'):
+ bot.RunProcess(['npm', 'test'])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698