OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2014 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """ |
| 8 Verify that 'none' targets produce valid ninja rules. |
| 9 """ |
| 10 |
| 11 import os |
| 12 import sys |
| 13 import TestCommon |
| 14 import TestGyp |
| 15 |
| 16 # This is a ninja-specific test. |
| 17 test = TestGyp.TestGyp(formats=['ninja']) |
| 18 |
| 19 test.run_gyp('none-rules.gyp') |
| 20 |
| 21 subninja = open(test.built_file_path('obj/doc.ninja')).read() |
| 22 if 'build doc: phony' not in subninja: |
| 23 test.fail_test() |
| 24 |
| 25 # Build the library. |
| 26 test.build('none-rules.gyp', 'doc') |
OLD | NEW |