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

Side by Side Diff: platform_tools/android/tests/makefile_writer_tests.py

Issue 369673002: Use BUILD_NATIVE_TEST instead of BUILD_EXECUTABLE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove LOCAL_MODULE_PATH; update tests. Created 6 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 | « platform_tools/android/tests/expectations/tool/Android.mk ('k') | no next file » | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright 2014 Google Inc. 3 # Copyright 2014 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 """ 8 """
9 Test makefile_writer.py 9 Test makefile_writer.py
10 """ 10 """
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 deviations_from_common=deviations) 112 deviations_from_common=deviations)
113 113
114 def generate_dummy_tool_makefile(target_dir): 114 def generate_dummy_tool_makefile(target_dir):
115 """Create a dummy makefile for a tool. 115 """Create a dummy makefile for a tool.
116 116
117 Args: 117 Args:
118 target_dir: directory in which to write the resulting Android.mk 118 target_dir: directory in which to write the resulting Android.mk
119 """ 119 """
120 vars_dict = generate_dummy_vars_dict(None) 120 vars_dict = generate_dummy_vars_dict(None)
121 tool_makefile_writer.write_tool_android_mk(target_dir=target_dir, 121 tool_makefile_writer.write_tool_android_mk(target_dir=target_dir,
122 var_dict=vars_dict, 122 var_dict=vars_dict)
123 place_in_local_tmp=False)
124 123
125 124
126 class MakefileWriterTest(unittest.TestCase): 125 class MakefileWriterTest(unittest.TestCase):
127 126
128 def test_write_group_empty(self): 127 def test_write_group_empty(self):
129 f = tempfile.TemporaryFile() 128 f = tempfile.TemporaryFile()
130 assert f.tell() == 0 129 assert f.tell() == 0
131 for empty in (None, []): 130 for empty in (None, []):
132 for truth in (True, False): 131 for truth in (True, False):
133 makefile_writer.write_group(f, 'name', empty, truth) 132 makefile_writer.write_group(f, 'name', empty, truth)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 parser = argparse.ArgumentParser() 215 parser = argparse.ArgumentParser()
217 parser.add_argument('-r', '--rebaseline', help='Rebaseline expectations.', 216 parser.add_argument('-r', '--rebaseline', help='Rebaseline expectations.',
218 action='store_true') 217 action='store_true')
219 args = parser.parse_args() 218 args = parser.parse_args()
220 219
221 if args.rebaseline: 220 if args.rebaseline:
222 rebaseline() 221 rebaseline()
223 else: 222 else:
224 main() 223 main()
225 224
OLDNEW
« no previous file with comments | « platform_tools/android/tests/expectations/tool/Android.mk ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698