| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'path', | 6 'path', |
| 7 'platform', | 7 'platform', |
| 8 'step', | 8 'step', |
| 9 'step_history', | 9 'step_history', |
| 10 ] | 10 ] |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # Create temp dir. | 24 # Create temp dir. |
| 25 temp_dir = api.path.mkdtemp(prefix) | 25 temp_dir = api.path.mkdtemp(prefix) |
| 26 assert api.path.exists(temp_dir) | 26 assert api.path.exists(temp_dir) |
| 27 # Make |temp_dir| surface in expectation files. | 27 # Make |temp_dir| surface in expectation files. |
| 28 yield api.step('print %s' % prefix, ['echo', temp_dir]) | 28 yield api.step('print %s' % prefix, ['echo', temp_dir]) |
| 29 | 29 |
| 30 # module.resource(...) demo. | 30 # module.resource(...) demo. |
| 31 yield api.step('print resource', | 31 yield api.step('print resource', |
| 32 ['echo', api.path.resource('dir', 'file.py')]) | 32 ['echo', api.path.resource('dir', 'file.py')]) |
| 33 | 33 |
| 34 # rmwildcard demo |
| 35 yield api.path.rmwildcard('*.o', api.path['slave_build']) |
| 36 |
| 34 | 37 |
| 35 def GenTests(api): | 38 def GenTests(api): |
| 36 # This line is for code coverage. | 39 # This line is for code coverage. |
| 37 api.path['slave_build'].join('foo') | 40 api.path['slave_build'].join('foo') |
| 38 | 41 |
| 39 for platform in ('linux', 'win', 'mac'): | 42 for platform in ('linux', 'win', 'mac'): |
| 40 yield api.test(platform) + api.platform.name(platform) | 43 yield api.test(platform) + api.platform.name(platform) |
| OLD | NEW |