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..fe5736b3788de4f9376e51ad9c115d3529c1f1b8 |
--- /dev/null |
+++ b/test/chained-rules/gyptest-chained-rules.py |
@@ -0,0 +1,23 @@ |
+#!/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 rules operating on the output of other rules are processed. |
+""" |
+ |
+import os |
+import sys |
+import TestGyp |
+ |
+# TODO(scottmg): make generator doesn't support rules that process the output |
+# of other rules. |
+test = TestGyp.TestGyp(formats=['!make']) |
+test.run_gyp('chained-rules.gyp') |
+test.build('chained-rules.gyp', test.ALL) |
+test.built_file_must_exist('input.msi') # rule->rule |
+test.built_file_must_exist('out.final') # action->rule |
+test.built_file_must_exist('bar.msi') # rule 3x, with duplicated extensions. |
+test.pass_test() |