Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / gyp / test / msvs / multiple_actions_error_handling / gyptest.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2014 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 Verifies that failing actions make the build fail reliably, even when there
9 are multiple actions in one project.
10 """
11
12 import os
13 import sys
14 import TestGyp
15 import TestCmd
16
17 test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')
18
19 test.run_gyp('actions.gyp')
20 test.build('actions.gyp',
21            target='actions-test',
22            status=1,
23            stdout=r'.*"cmd\.exe" exited with code 1\..*',
24            match=TestCmd.match_re_dotall)
25
26 test.pass_test()