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""" 8Verifies build of an executable in three different configurations. 9""" 10 11import TestGyp 12 13test = TestGyp.TestGyp() 14 15test.run_gyp('configurations.gyp') 16 17test.set_configuration('Release') 18test.build('configurations.gyp') 19test.run_built_executable('configurations', stdout="Release configuration\n") 20 21test.set_configuration('Debug') 22test.build('configurations.gyp') 23test.run_built_executable('configurations', stdout="Debug configuration\n") 24 25test.set_configuration('Foo') 26test.build('configurations.gyp') 27test.run_built_executable('configurations', stdout="Foo configuration\n") 28 29test.pass_test() 30