blob: 22c73a3754d98245189f03a883b5c66958b733e8 [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
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',
20 stdout=('Base configuration\n'
21 'Common configuration\n'
22 'Common2 configuration\n'
23 'Release configuration\n'))
24
25test.set_configuration('Debug')
26test.build('configurations.gyp')
27test.run_built_executable('configurations',
28 stdout=('Base configuration\n'
29 'Common configuration\n'
30 'Common2 configuration\n'
31 'Debug configuration\n'))
32
33test.pass_test()