summaryrefslogtreecommitdiff
path: root/test/actions-bare/gyptest-bare.py
blob: 2ad506deaf70927750119770093f34833dac96c5 (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
#!/usr/bin/env python

"""
Verifies simple actions when using an explicit build target of 'all'.
"""

import TestGyp

test = TestGyp.TestGyp()

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

file_content = 'Hello from bare.py\n'

if test.format == 'xcode':
  test.must_match('relocate/src/build/Default/out.txt', file_content)
elif test.format == 'make':
  test.must_match('relocate/src/out/Default/out.txt', file_content)
else:
  test.must_match('relocate/src/Default/out.txt', file_content)

test.pass_test()