You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
687 B

#!/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.
"""
Verifies that files generated by two-steps-removed actions are built before
dependent compile steps.
"""
import os
import TestGyp
# This test is Ninja-specific in that:
# - the bug only showed nondeterministically in parallel builds;
# - it relies on a ninja-specific output file path.
test = TestGyp.TestGyp(formats=['ninja'])
test.run_gyp('chained-dependency.gyp')
test.build('chained-dependency.gyp', 'obj/chained.chained.o')
# The test passes if the .o file builds successfully.
test.pass_test()