3
# Copyright (c) 2015 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.
8
Verifies actions with multiple outputs will correctly rebuild.
15
if sys.platform == 'win32':
16
print "This test is currently disabled: https://crbug.com/483696."
19
test = TestGyp.TestGyp()
21
test.run_gyp('multiple-outputs.gyp', chdir='src')
23
chdir = 'relocate/src'
24
test.relocate('src', chdir)
26
def build_and_check():
27
# Build + check that both outputs exist.
28
test.build('multiple-outputs.gyp', chdir=chdir)
29
test.built_file_must_exist('out1.txt', chdir=chdir)
30
test.built_file_must_exist('out2.txt', chdir=chdir)
35
# Remove either + rebuild. Both should exist (again).
36
os.remove(test.built_file_path('out1.txt', chdir=chdir))
39
# Remove the other + rebuild. Both should exist (again).
40
os.remove(test.built_file_path('out2.txt', chdir=chdir))