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

Side by Side Diff: test/target/gyptest-target.py

Issue 23464051: Avoid MSB8012 in GYP (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Add test Created 7 years, 3 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (C) 2013 Opera Software ASA. All rights reserved.
4 # This file is an original work developed by Opera Software ASA
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7
8 """
9 Verifies simplest-possible build of a "Hello, world!" program
10 using non-default extension. In particular, verifies that
11 target_extension avoids MSB8012 for msvs.
12 """
13
14 import TestGyp
15
16 # Android does not support setting the build directory.
17 test = TestGyp.TestGyp(formats=['!android'])
18
19 test.run_gyp('target.gyp')
20 test.build('target.gyp')
21
22 # executables
23 test.built_file_must_exist('hello.stuff', test.EXECUTABLE, bare=True)
24
25 # check msvs log for errors
26 if test.format == "msvs":
27 log_file = "obj\\hello\\hello.log"
28 test.built_file_must_exist(log_file)
29 test.built_file_must_not_contain(log_file, "MSB8012")
30
31 test.pass_test()
OLDNEW
« no previous file with comments | « test/lib/TestGyp.py ('k') | test/target/hello.c » ('j') | test/target/hello.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698