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

Side by Side Diff: test/copies/gyptest-all.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years 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 unified diff | Download patch
OLDNEW
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()
14 14
15 test.run_gyp('copies.gyp', chdir='src') 15 test.run_gyp('copies.gyp',
16 '-G', 'xcode_ninja_target_pattern=^(?!copies_null)',
17 chdir='src')
16 18
17 test.relocate('src', 'relocate/src') 19 test.relocate('src', 'relocate/src')
18 20
19 test.build('copies.gyp', test.ALL, chdir='relocate/src') 21 test.build('copies.gyp', test.ALL, chdir='relocate/src')
20 22
21 test.must_match(['relocate', 'src', 'copies-out', 'file1'], 'file1 contents\n') 23 test.must_match(['relocate', 'src', 'copies-out', 'file1'], 'file1 contents\n')
22 24
23 test.built_file_must_match('copies-out/file2', 25 test.built_file_must_match('copies-out/file2',
24 'file2 contents\n', 26 'file2 contents\n',
25 chdir='relocate/src') 27 chdir='relocate/src')
26 28
27 test.built_file_must_match('copies-out/directory/file3', 29 test.built_file_must_match('copies-out/directory/file3',
28 'file3 contents\n', 30 'file3 contents\n',
29 chdir='relocate/src') 31 chdir='relocate/src')
30 test.built_file_must_match('copies-out/directory/file4', 32 test.built_file_must_match('copies-out/directory/file4',
31 'file4 contents\n', 33 'file4 contents\n',
32 chdir='relocate/src') 34 chdir='relocate/src')
33 test.built_file_must_match('copies-out/directory/subdir/file5', 35 test.built_file_must_match('copies-out/directory/subdir/file5',
34 'file5 contents\n', 36 'file5 contents\n',
35 chdir='relocate/src') 37 chdir='relocate/src')
36 test.built_file_must_match('copies-out/subdir/file6', 38 test.built_file_must_match('copies-out/subdir/file6',
37 'file6 contents\n', 39 'file6 contents\n',
38 chdir='relocate/src') 40 chdir='relocate/src')
39 41
40 test.pass_test() 42 test.pass_test()
OLDNEW
« no previous file with comments | « test/compiler-override/gyptest-compiler-global-settings.py ('k') | test/copies/gyptest-default.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698