3 # Copyright (c) 2009 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 file copies using an explicit build target of 'all'.
13 test = TestGyp.TestGyp()
15 test.run_gyp('copies.gyp', chdir='src')
17 test.relocate('src', 'relocate/src')
19 test.build('copies.gyp', test.ALL, chdir='relocate/src')
21 test.must_match(['relocate', 'src', 'copies-out', 'file1'], 'file1 contents\n')
23 test.built_file_must_match('copies-out/file2',
27 test.built_file_must_match('copies-out/directory/file3',
30 test.built_file_must_match('copies-out/directory/file4',
33 test.built_file_must_match('copies-out/directory/subdir/file5',
36 test.built_file_must_match('copies-out/subdir/file6',