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

Side by Side Diff: syzygy/integration_tests/integration_tests.gyp

Issue 2946083002: Moved source files into a list variable and add a custom build target to compile the integration te… (Closed)
Patch Set: Split the test table into Asan and non-Asan tests. Created 3 years, 5 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 | « no previous file | syzygy/integration_tests/integration_tests_dll.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 Google Inc. All Rights Reserved. 1 # Copyright 2013 Google Inc. All Rights Reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 { 15 {
16 'variables': { 16 'variables': {
17 'integration_tests_source_files': [ 17 'integration_tests_common_source_files': [
18 'asan_interceptors_tests.cc', 18 'asan_interceptors_tests.cc',
19 'asan_page_protection_tests.cc', 19 'asan_page_protection_tests.cc',
20 'bb_entry_tests.cc',
21 'behavior_tests.cc',
22 'coverage_tests.cc',
23 'deferred_free_tests.cc',
24 'integration_tests_dll.cc', 20 'integration_tests_dll.cc',
25 'profile_tests.cc',
26 ], 21 ],
27 'integration_tests_other_files': [ 22 'integration_tests_other_files': [
28 'asan_interceptors_tests.h', 23 'asan_interceptors_tests.h',
29 'asan_page_protection_tests.h', 24 'asan_page_protection_tests.h',
30 'bb_entry_tests.h', 25 'bb_entry_tests.h',
26 'bb_entry_tests.cc',
Sébastien Marchand 2017/07/04 18:09:04 Fix the indentation. This is something that comes
31 'behavior_tests.h', 27 'behavior_tests.h',
28 'behavior_tests.cc',
32 'coverage_tests.h', 29 'coverage_tests.h',
30 'coverage_tests.cc',
33 'deferred_free_tests.h', 31 'deferred_free_tests.h',
32 'deferred_free_tests.cc',
34 'integration_tests_dll.def', 33 'integration_tests_dll.def',
35 'integration_tests_dll.h', 34 'integration_tests_dll.h',
36 'integration_tests_dll.rc', 35 'integration_tests_dll.rc',
37 'profile_tests.h', 36 'profile_tests.h',
37 'profile_tests.cc',
38 ] 38 ]
39 }, 39 },
40 'targets': [ 40 'targets': [
41 { 41 {
42 'target_name': 'integration_tests', 42 'target_name': 'integration_tests',
43 'type': 'executable', 43 'type': 'executable',
44 'sources': [ 44 'sources': [
45 'integration_tests.rc', 45 'integration_tests.rc',
46 'instrument_integration_test.cc', 46 'instrument_integration_test.cc',
47 '<(src)/syzygy/testing/run_all_unittests.cc', 47 '<(src)/syzygy/testing/run_all_unittests.cc',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 'action': [ 99 'action': [
100 '<(python_exe)', 100 '<(python_exe)',
101 '<(src)/syzygy/build/copy_laa.py', 101 '<(src)/syzygy/build/copy_laa.py',
102 '--input=$(OutDir)\\integration_tests.exe', 102 '--input=$(OutDir)\\integration_tests.exe',
103 '--output=$(OutDir)\\integration_tests_4g.exe', 103 '--output=$(OutDir)\\integration_tests_4g.exe',
104 '--overwrite', 104 '--overwrite',
105 ], 105 ],
106 }, 106 },
107 ], 107 ],
108 }, 108 },
109
110 { 109 {
111 'target_name': 'integration_tests_clang', 110 'target_name': 'integration_tests_clang_dll',
112 'type': 'none', 111 'type': 'none',
113 'msvs_cygwin_shell': 0, 112 'msvs_cygwin_shell': 0,
114 'actions': [ 113 'actions': [
115 { 114 {
116 'action_name': 'make_integration_tests_clang', 115 'action_name': 'make_integration_tests_clang',
117 'inputs': ['<@(integration_tests_source_files)'], 116 'inputs': ['<@(integration_tests_common_source_files)'],
118 'outputs': ['<(PRODUCT_DIR)/integration_tests_clang.exe'], 117 'outputs': ['<(PRODUCT_DIR)/integration_tests_clang_dll.dll'],
119 'action': [ 118 'action': [
120 'make_integration_tests_clang.py', 119 'make_integration_tests_clang.py',
121 '--build-dir=<(PRODUCT_DIR)', 120 '--output-dir=<(PRODUCT_DIR)',
122 '--input-files=<(_inputs)', 121 '--input-files=<(_inputs)',
123 ], 122 ],
124 }, 123 },
125 ], 124 ],
126 }, 125 },
127 { 126 {
128 'target_name': 'integration_tests_dll', 127 'target_name': 'integration_tests_dll',
129 'type': 'loadable_module', 128 'type': 'loadable_module',
130 'sources': ['<@(integration_tests_source_files)', '<@(integration_tests_o ther_files)'], 129 'sources': [
130 » '<@(integration_tests_common_source_files)',
131 » » '<@(integration_tests_other_files)'
Sébastien Marchand 2017/07/04 18:09:04 Same issue here, and you're using tabs instead of
132 » ],
131 'dependencies': [ 133 'dependencies': [
134 '<(src)/base/base.gyp:base',
Sébastien Marchand 2017/07/04 18:09:04 Ditto.
132 '<(src)/syzygy/pe/pe.gyp:export_dll', 135 '<(src)/syzygy/pe/pe.gyp:export_dll',
133 '<(src)/syzygy/version/version.gyp:syzygy_version', 136 '<(src)/syzygy/version/version.gyp:syzygy_version',
134 ], 137 ],
135 'msvs_settings': { 138 'msvs_settings': {
136 'VCLinkerTool': { 139 'VCLinkerTool': {
137 # Asan agent is compiled without large address spaces to allow a 140 # Asan agent is compiled without large address spaces to allow a
138 # memory optimization on the shadow memory. Agents should run in both 141 # memory optimization on the shadow memory. Agents should run in both
139 # modes, thus in the long term, we should remove this. 142 # modes, thus in the long term, we should remove this.
140 # Disable support for large address spaces. 143 # Disable support for large address spaces.
141 'LargeAddressAware': 1, 144 'LargeAddressAware': 1,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 # Asan agent is compiled without large address spaces to allow a 236 # Asan agent is compiled without large address spaces to allow a
234 # memory optimization on the shadow memory. Agents should run in both 237 # memory optimization on the shadow memory. Agents should run in both
235 # modes, thus in the long term, we should remove this. 238 # modes, thus in the long term, we should remove this.
236 # Disable support for large address spaces. 239 # Disable support for large address spaces.
237 'LargeAddressAware': 1, 240 'LargeAddressAware': 1,
238 }, 241 },
239 }, 242 },
240 }, 243 },
241 ], 244 ],
242 } 245 }
OLDNEW
« no previous file with comments | « no previous file | syzygy/integration_tests/integration_tests_dll.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698