OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Set of utilities to add commands to a buildbot factory. | 6 """Set of utilities to add commands to a buildbot factory. |
7 | 7 |
8 Contains the Native Client specific commands. Based on commands.py""" | 8 Contains the Native Client specific commands. Based on commands.py""" |
9 | 9 |
10 import os | 10 import os |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 def AddUtmanTests(self, platform, options=None, timeout=300): | 511 def AddUtmanTests(self, platform, options=None, timeout=300): |
512 """Add a build step to run utman tests.""" | 512 """Add a build step to run utman tests.""" |
513 self.AddTestStep( | 513 self.AddTestStep( |
514 shell.ShellCommand, | 514 shell.ShellCommand, |
515 test_name='test-' + platform, timeout=timeout, | 515 test_name='test-' + platform, timeout=timeout, |
516 test_command='UTMAN_DEBUG=true tools/llvm/utman.sh test-' + platform, | 516 test_command='UTMAN_DEBUG=true tools/llvm/utman.sh test-' + platform, |
517 workdir='build/native_client', | 517 workdir='build/native_client', |
518 env=self._build_env, | 518 env=self._build_env, |
519 locks=[self.slave_exclusive_lock]) | 519 locks=[self.slave_exclusive_lock]) |
520 | 520 |
521 def AddValgrind(self, options=None): | 521 def AddMemcheck(self, options=None): |
522 """Add a valgrind test step.""" | 522 """Add a Memcheck test step.""" |
523 cmd = ('%s platform=x86-64 sdl=none ' | 523 cmd = ('%s platform=x86-64 sdl=none ' |
524 'run_under=src/third_party/valgrind/bin/memcheck.sh,' | 524 'buildbot=memcheck memcheck_bot_tests') % self._test_tool |
525 '--log-file=mc.log scale_timeout=20 ' | |
526 'run_hello_world_test') % self._test_tool | |
527 self.AddTestStep( | 525 self.AddTestStep( |
528 shell.ShellCommand, | 526 shell.ShellCommand, |
529 test_name='valgrind', timeout=10000, | 527 test_name='memcheck', timeout=10000, |
| 528 test_command=cmd, |
| 529 workdir='build/native_client', |
| 530 env=self._build_env, |
| 531 locks=[self.slave_exclusive_lock]) |
| 532 |
| 533 def AddThreadSanitizer(self, options=None): |
| 534 """Add a ThreadSanitizer test step.""" |
| 535 cmd = ('%s platform=x86-64 sdl=none ' |
| 536 'buildbot=tsan tsan_bot_tests') % self._test_tool |
| 537 self.AddTestStep( |
| 538 shell.ShellCommand, |
| 539 test_name='tsan', timeout=10000, |
530 test_command=cmd, | 540 test_command=cmd, |
531 workdir='build/native_client', | 541 workdir='build/native_client', |
532 env=self._build_env, | 542 env=self._build_env, |
533 locks=[self.slave_exclusive_lock]) | 543 locks=[self.slave_exclusive_lock]) |
534 | 544 |
535 def DropDoxygen(self): | 545 def DropDoxygen(self): |
536 """Adds a step to drop doxygen from the tarballs.""" | 546 """Adds a step to drop doxygen from the tarballs.""" |
537 if self._target_platform.startswith('win'): | 547 if self._target_platform.startswith('win'): |
538 cmd = ('rmdir /q /s ..\\third_party\\doxygen & ' | 548 cmd = ('rmdir /q /s ..\\third_party\\doxygen & ' |
539 'rmdir /q /s ..\\doxygen.DEPS & echo nop') | 549 'rmdir /q /s ..\\doxygen.DEPS & echo nop') |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 haltOnFailure=True, | 652 haltOnFailure=True, |
643 workdir='build/native_client/tools/modular-build', | 653 workdir='build/native_client/tools/modular-build', |
644 command='rm -rf out') | 654 command='rm -rf out') |
645 self._factory.addStep(shell.ShellCommand, | 655 self._factory.addStep(shell.ShellCommand, |
646 description='modular_build', | 656 description='modular_build', |
647 timeout=timeout, | 657 timeout=timeout, |
648 haltOnFailure=True, | 658 haltOnFailure=True, |
649 workdir='build/native_client/tools/modular-build', | 659 workdir='build/native_client/tools/modular-build', |
650 command='python build.py -b') | 660 command='python build.py -b') |
651 | 661 |
OLD | NEW |