Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright (c) 2013 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 a target marked as 'link_dependency==1' isn't being pulled into |
| 9 | the 'none' target's dependency (which would otherwise lead to a dependency |
| 10 | cycle in ninja). |
| 11 | """ |
| 12 | |
| 13 | import TestGyp |
| 14 | |
| 15 | # See https://codereview.chromium.org/177043010/#msg15 for why this doesn't |
| 16 | # work with cmake. |
| 17 | test = TestGyp.TestGyp(formats=['!cmake']) |
| 18 | |
| 19 | test.run_gyp('test.gyp') |
| 20 | test.build('test.gyp', 'main') |
| 21 | |
| 22 | # If running gyp worked, all is well. |
| 23 | test.pass_test() |