OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 | |
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 | |
5 # found in the LICENSE file. | |
6 | |
7 """ | |
8 Make sure additional manual flags are extracted properly. | |
9 """ | |
10 | |
11 import TestGyp | |
12 | |
13 import subprocess | |
14 import sys | |
15 | |
16 if sys.platform == 'win32': | |
17 test = TestGyp.TestGyp(formats=['ninja']) | |
Nico
2012/02/29 19:44:18
One thing that I did in the test/mac tests is that
scottmg
2012/03/01 18:09:04
Haven't done that. I'll go through them and see wh
| |
18 | |
19 CHDIR = 'compiler_flags' | |
20 test.run_gyp('additional-options.gyp', chdir=CHDIR) | |
21 | |
22 ninja_file = test.built_file_path('obj/test_additional_none.ninja', | |
23 chdir=CHDIR) | |
24 # Just don't error out on build. | |
25 | |
26 ninja_file = test.built_file_path('obj/test_additional_one.ninja', | |
27 chdir=CHDIR) | |
28 test.must_contain(ninja_file, 'cflags = /WEE') | |
29 | |
30 ninja_file = test.built_file_path('obj/test_additional_few.ninja', | |
31 chdir=CHDIR) | |
32 test.must_contain(ninja_file, '/WEE') | |
33 test.must_contain(ninja_file, '/WAA') | |
34 test.must_contain(ninja_file, '/WOO') | |
35 | |
36 test.pass_test() | |
OLD | NEW |