Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. | 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Verifies file copies using an explicit build target of 'all'. | 8 Verifies file copies using an explicit build target of 'all'. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import TestGyp | 11 import TestGyp |
| 12 | 12 |
| 13 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp(formats=['!ninja']) |
|
Nico
2011/08/19 18:21:25
same question
| |
| 14 | 14 |
| 15 test.writable(test.workpath('copies'), False) | 15 test.writable(test.workpath('copies'), False) |
| 16 | 16 |
| 17 test.run_gyp('copies.gyp', | 17 test.run_gyp('copies.gyp', |
| 18 '--generator-output=' + test.workpath('gypfiles'), | 18 '--generator-output=' + test.workpath('gypfiles'), |
| 19 chdir='copies') | 19 chdir='copies') |
| 20 | 20 |
| 21 test.writable(test.workpath('copies'), True) | 21 test.writable(test.workpath('copies'), True) |
| 22 | 22 |
| 23 test.relocate('copies', 'relocate/copies') | 23 test.relocate('copies', 'relocate/copies') |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 48 | 48 |
| 49 if test.format == 'xcode': | 49 if test.format == 'xcode': |
| 50 chdir = 'relocate/copies/subdir/build' | 50 chdir = 'relocate/copies/subdir/build' |
| 51 elif test.format == 'make': | 51 elif test.format == 'make': |
| 52 chdir = 'relocate/gypfiles/out' | 52 chdir = 'relocate/gypfiles/out' |
| 53 else: | 53 else: |
| 54 chdir = 'relocate/gypfiles' | 54 chdir = 'relocate/gypfiles' |
| 55 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n") | 55 test.must_match([chdir, 'Default', 'copies-out', 'file4'], "file4 contents\n") |
| 56 | 56 |
| 57 test.pass_test() | 57 test.pass_test() |
| OLD | NEW |