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..f0ecf8447b97b334f9310918a5cf0922ec205b33 |
--- /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('obj/doc.ninja')).read() |
+if 'build doc: phony' not in subninja: |
+ test.fail_test() |
+ |
+# Build the library. |
+test.build('none-rules.gyp', 'doc') |