Index: test/sanitize-rule-names/sanitize-rule-names.gyp |
diff --git a/test/sanitize-rule-names/sanitize-rule-names.gyp b/test/sanitize-rule-names/sanitize-rule-names.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7e62de889b6f065d03d604281df7a84e33d3a7e7 |
--- /dev/null |
+++ b/test/sanitize-rule-names/sanitize-rule-names.gyp |
@@ -0,0 +1,27 @@ |
+# 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. |
+ |
+{ |
+ 'targets': [ |
+ { |
+ 'target_name': 's_test', |
+ 'type': 'executable', |
+ 'rules': [ |
+ { |
+ # Make sure this rule name doesn't cause an invalid ninja file. |
+ 'rule_name': 'assembler (gnu-compatible)', |
+ 'extension': 'X', |
+ 'outputs': ['outfile'], |
+ 'msvs_cygwin_shell': 0, |
+ 'msvs_quote_cmd': 0, |
+ 'action': ['python', 'script.py', '<(RULE_INPUT_PATH)', 'outfile'], |
+ }, |
+ ], |
+ 'sources': [ |
+ 'blah.X', |
+ 'hello.cc', |
+ ], |
+ }, |
+ ], |
+} |