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

Side by Side Diff: test/win/gyptest-link-pdb-output.py

Issue 126443004: win ninja: include .pdb in linker outputs (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: . Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2014 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 Ensure that ninja includes the .pdb as an output file from linking.
9 """
10
11 import TestGyp
12
13 import os
14 import sys
15
16 if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['ninja'])
Nico 2014/01/08 21:44:13 Does this not pass with msvs?
scottmg 2014/01/08 21:54:57 No, because you can't ask it to build a file (the
18 CHDIR = 'linker-flags'
19 test.run_gyp('pdb-output.gyp', chdir=CHDIR)
20 # Note, building the pdbs rather than ALL or gyp target.
21 test.build('pdb-output.gyp', 'output_exe.pdb', chdir=CHDIR)
22 test.build('pdb-output.gyp', 'output_dll.pdb', chdir=CHDIR)
23
24 def FindFile(pdb):
25 full_path = test.built_file_path(pdb, chdir=CHDIR)
26 return os.path.isfile(full_path)
27
28 if not FindFile('output_exe.pdb'):
29 test.fail_test()
30 if not FindFile('output_dll.pdb'):
31 test.fail_test()
32
33 test.pass_test()
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698