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

Unified Diff: test/ninja/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: 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/ninja/sanitize-rule-names/blah.X ('k') | test/ninja/sanitize-rule-names/hello.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py
diff --git a/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py b/test/ninja/sanitize-rule-names/gyptest-sanitize-rule-names.py
new file mode 100644
index 0000000000000000000000000000000000000000..8f00f9b06cec83ff11c03e7770252a9f2789c379
--- /dev/null
+++ b/test/ninja/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
+invalid .ninja files.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp(formats=['ninja'])
+test.run_gyp('sanitize-rule-names.gyp')
+test.build('sanitize-rule-names.gyp', test.ALL)
Nico 2012/04/30 21:30:33 Nothing in this test looks ninja-specific. Should
scottmg 2012/04/30 21:33:04 Yeah, good point. I don't think any other generato
+test.pass_test()
« no previous file with comments | « test/ninja/sanitize-rule-names/blah.X ('k') | test/ninja/sanitize-rule-names/hello.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698