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

Unified Diff: test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py

Issue 1148653011: msvs: Make sure stdout/stderr from rule commands get logged (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: rebase Created 5 years, 7 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/msvs/rules_stdout_stderr/dummy.foo ('k') | test/msvs/rules_stdout_stderr/rule_stderr.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py
diff --git a/test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py b/test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py
new file mode 100644
index 0000000000000000000000000000000000000000..804505a23d26a2d419370a5365e045d05d24ec3f
--- /dev/null
+++ b/test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2015 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+""" Verifies that stdout and stderr from rules get logged in the build's
+stdout."""
+
+import sys
+import TestGyp
+
+if sys.platform == 'win32':
+ test = TestGyp.TestGyp(formats=['msvs'])
+
+ test.run_gyp('rules-stdout-stderr.gyp')
+ test.build('rules-stdout-stderr.gyp', test.ALL)
+
+ expected_stdout_lines = [
+ 'testing stdout',
+ 'This will go to stdout',
+
+ # Note: stderr output from rules will go to the build's stdout.
+ 'testing stderr',
+ 'This will go to stderr',
+ ]
+ test.must_contain_all_lines(test.stdout(), expected_stdout_lines)
+
+ test.pass_test()
« no previous file with comments | « test/msvs/rules_stdout_stderr/dummy.foo ('k') | test/msvs/rules_stdout_stderr/rule_stderr.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698