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

Unified Diff: test/sanitize-rule-names/gyptest-sanitize-rule-names.py

Issue 10269012: ninja windows: sanitize rule names to not emit corrupt .ninja files (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: line endings Created 8 years, 8 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/sanitize-rule-names/blah.X ('k') | test/sanitize-rule-names/hello.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/sanitize-rule-names/gyptest-sanitize-rule-names.py
diff --git a/test/sanitize-rule-names/gyptest-sanitize-rule-names.py b/test/sanitize-rule-names/gyptest-sanitize-rule-names.py
new file mode 100644
index 0000000000000000000000000000000000000000..968a0ce5ce48e8001091e75953655791dc0982e1
--- /dev/null
+++ b/test/sanitize-rule-names/gyptest-sanitize-rule-names.py
@@ -0,0 +1,17 @@
+#!/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.
+
+"""
+Make sure rule names with non-"normal" characters in them don't cause
+broken build files. This test was originally causing broken .ninja files.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+test.run_gyp('sanitize-rule-names.gyp')
+test.build('sanitize-rule-names.gyp', test.ALL)
+test.pass_test()
« no previous file with comments | « test/sanitize-rule-names/blah.X ('k') | test/sanitize-rule-names/hello.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698