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

Unified Diff: test/chained-rules/gyptest-chained-rules.py

Issue 10399096: Check for and disallow rules the process the output of other rules (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: fix comment Created 8 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
Index: test/chained-rules/gyptest-chained-rules.py
diff --git a/test/chained-rules/gyptest-chained-rules.py b/test/chained-rules/gyptest-chained-rules.py
new file mode 100644
index 0000000000000000000000000000000000000000..6695e6bed7f0c384abbcddb76d9ba0576eb80afa
--- /dev/null
+++ b/test/chained-rules/gyptest-chained-rules.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 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 we don't have chained rule invocations.
+"""
+
+import TestGyp
+
+# Rules that chain the output of a rule to another rule are challenging to
+# support in all generators, so we purposefully ensure we don't use that
+# behaviour.
+test = TestGyp.TestGyp()
+test.run_gyp('chained-rules.gyp', status=1, stderr=None)
+test.pass_test()

Powered by Google App Engine
This is Rietveld 408576698