1#!/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', test.ALL, chdir='relocate/src', stderr=None) 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() 31