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 7""" 8""" 9 10import TestGyp 11 12test = TestGyp.TestGyp() 13 14test.run_gyp('multiple.gyp', chdir='src') 15 16test.relocate('src', 'relocate/src') 17 18test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None) 19 20expect1 = """\ 21hello from prog1.c 22hello from common.c 23""" 24 25expect2 = """\ 26hello from prog2.c 27hello from common.c 28""" 29 30test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src') 31test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src') 32 33test.pass_test() 34