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

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

Issue 1131213003: Remove the Android generator. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « pylib/gyp/generator/android.py ('k') | test/actions/gyptest-default.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 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 simple actions when using an explicit build target of 'all'. 8 Verifies simple actions when using an explicit build target of 'all'.
9 """ 9 """
10 10
11 import glob 11 import glob
12 import os 12 import os
13 import TestGyp 13 import TestGyp
14 14
15 test = TestGyp.TestGyp(workdir='workarea_all') 15 test = TestGyp.TestGyp(workdir='workarea_all')
16 16
17 test.run_gyp('actions.gyp', chdir='src') 17 test.run_gyp('actions.gyp', chdir='src')
18 18
19 test.relocate('src', 'relocate/src') 19 test.relocate('src', 'relocate/src')
20 20
21 # Some gyp files use an action that mentions an output but never 21 # Some gyp files use an action that mentions an output but never
22 # writes it as a means to making the action run on every build. That 22 # writes it as a means to making the action run on every build. That
23 # doesn't mesh well with ninja's semantics. TODO(evan): figure out 23 # doesn't mesh well with ninja's semantics. TODO(evan): figure out
24 # how to work always-run actions in to ninja. 24 # how to work always-run actions in to ninja.
25 # Android also can't do this as it doesn't have order-only dependencies. 25 if test.format in ['ninja', 'xcode-ninja']:
26 if test.format in ['ninja', 'android', 'xcode-ninja']:
27 test.build('actions.gyp', test.ALL, chdir='relocate/src') 26 test.build('actions.gyp', test.ALL, chdir='relocate/src')
28 else: 27 else:
29 # Test that an "always run" action increases a counter on multiple 28 # Test that an "always run" action increases a counter on multiple
30 # invocations, and that a dependent action updates in step. 29 # invocations, and that a dependent action updates in step.
31 test.build('actions.gyp', test.ALL, chdir='relocate/src') 30 test.build('actions.gyp', test.ALL, chdir='relocate/src')
32 test.must_match('relocate/src/subdir1/actions-out/action-counter.txt', '1') 31 test.must_match('relocate/src/subdir1/actions-out/action-counter.txt', '1')
33 test.must_match('relocate/src/subdir1/actions-out/action-counter_2.txt', '1') 32 test.must_match('relocate/src/subdir1/actions-out/action-counter_2.txt', '1')
34 test.build('actions.gyp', test.ALL, chdir='relocate/src') 33 test.build('actions.gyp', test.ALL, chdir='relocate/src')
35 test.must_match('relocate/src/subdir1/actions-out/action-counter.txt', '2') 34 test.must_match('relocate/src/subdir1/actions-out/action-counter.txt', '2')
36 test.must_match('relocate/src/subdir1/actions-out/action-counter_2.txt', '2') 35 test.must_match('relocate/src/subdir1/actions-out/action-counter_2.txt', '2')
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 # previous tests deleted. Confirm this execution did NOT run the ALL 92 # previous tests deleted. Confirm this execution did NOT run the ALL
94 # target which would mess up our dep tests. 93 # target which would mess up our dep tests.
95 clean_dep_files() 94 clean_dep_files()
96 test.build('actions.gyp', 'action_with_dependencies_321', chdir='relocate/src', 95 test.build('actions.gyp', 'action_with_dependencies_321', chdir='relocate/src',
97 arguments=arguments) 96 arguments=arguments)
98 test.must_exist('relocate/src/deps_all_done_first_321.txt') 97 test.must_exist('relocate/src/deps_all_done_first_321.txt')
99 test.must_not_exist('relocate/src/deps_all_done_first_123.txt') 98 test.must_not_exist('relocate/src/deps_all_done_first_123.txt')
100 99
101 100
102 test.pass_test() 101 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/android.py ('k') | test/actions/gyptest-default.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698