summaryrefslogtreecommitdiff
path: root/deps/gyp/test/copies/gyptest-samedir.py
blob: 923ca6155758219bbb93a7a4c8c0822c25dc58db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python

# Copyright (c) 2013 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 file copies where two copies sections in the same target have the
same destination directory.
"""

import TestGyp

test = TestGyp.TestGyp()
test.run_gyp('copies-samedir.gyp', chdir='src')

test.relocate('src', 'relocate/src')
test.build('copies-samedir.gyp', 'copies_samedir', chdir='relocate/src')

test.built_file_must_match('copies-out-samedir/file1',
                           'file1 contents\n',
                           chdir='relocate/src')

test.built_file_must_match('copies-out-samedir/file2',
                           'file2 contents\n',
                           chdir='relocate/src')

test.pass_test()