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

Unified Diff: test/ninja/none-rules/gyptest-none-rules.py

Issue 203303011: Fix None target type with Ninja build. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: fix unittests Created 6 years, 9 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 | « pylib/gyp/generator/ninja.py ('k') | test/ninja/none-rules/none-rules.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/ninja/none-rules/gyptest-none-rules.py
diff --git a/test/ninja/none-rules/gyptest-none-rules.py b/test/ninja/none-rules/gyptest-none-rules.py
new file mode 100644
index 0000000000000000000000000000000000000000..bca031d6d697e209253db5b3fb2b4c27c176f27c
--- /dev/null
+++ b/test/ninja/none-rules/gyptest-none-rules.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2014 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.
+
+"""
+Verify that 'none' targets produce valid ninja rules.
+"""
+
+import os
+import sys
+import TestCommon
+import TestGyp
+
+# This is a ninja-specific test.
+test = TestGyp.TestGyp(formats=['ninja'])
+
+test.run_gyp('none-rules.gyp')
+
+subninja = open(test.built_file_path('build.ninja')).read()
+if 'build doc: phony' not in subninja:
+ test.fail_test()
+
+# Build the library.
+test.build('none-rules.gyp', 'doc')
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | test/ninja/none-rules/none-rules.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698