blob: db15d794c376f08e05c4fcb351fa24708dd31728 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
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.
6
7import TestGyp
8
9test = TestGyp.TestGyp()
10
11test.run_gyp('multiple.gyp', chdir='src')
12
13test.relocate('src', 'relocate/src')
14
15test.build('multiple.gyp', chdir='relocate/src')
16
17expect1 = """\
18hello from prog1.c
19hello from common.c
20"""
21
22expect2 = """\
23hello from prog2.c
24hello from common.c
25"""
26
27test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src')
28test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src')
29
30test.pass_test()