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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/lib/TestGyp.py ('k') | test/target/hello.c » ('j') | test/target/hello.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/target/gyptest-target.py
diff --git a/test/target/gyptest-target.py b/test/target/gyptest-target.py
new file mode 100644
index 0000000000000000000000000000000000000000..eb7bde6d2eb1b598bb075cdd33d505a6db810788
--- /dev/null
+++ b/test/target/gyptest-target.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+
+# Copyright (C) 2013 Opera Software ASA. All rights reserved.
+# This file is an original work developed by Opera Software ASA
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Verifies simplest-possible build of a "Hello, world!" program
+using non-default extension. In particular, verifies that
+target_extension avoids MSB8012 for msvs.
+"""
+
+import TestGyp
+
+# Android does not support setting the build directory.
+test = TestGyp.TestGyp(formats=['!android'])
+
+test.run_gyp('target.gyp')
+test.build('target.gyp')
+
+# executables
+test.built_file_must_exist('hello.stuff', test.EXECUTABLE, bare=True)
+
+# check msvs log for errors
+if test.format == "msvs":
+ log_file = "obj\\hello\\hello.log"
+ test.built_file_must_exist(log_file)
+ test.built_file_must_not_contain(log_file, "MSB8012")
+
+test.pass_test()
« 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