summaryrefslogtreecommitdiff
path: root/test/copies/gyptest-default.py
blob: fdf36b618b8a4c625c3374b813dc90ae1cd53034 (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
#!/usr/bin/env python

"""
Verifies file copies using the build tool default.
"""

import TestGyp

test = TestGyp.TestGyp()

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

test.relocate('src', 'relocate/src')

test.build_default('copies.gyp', chdir='relocate/src')

test.must_match(['relocate', 'src', 'copies-out', 'file1'], "file1 contents\n")

if test.format == 'xcode':
  file2 = ['relocate', 'src', 'build', 'Default', 'copies-out', 'file2']
elif test.format in ('make',):
  file2 = ['relocate', 'src', 'out', 'Default', 'copies-out', 'file2']
else:
  file2 = ['relocate', 'src', 'Default', 'copies-out', 'file2']
test.must_match(file2, "file2 contents\n")

test.pass_test()