blob: e1ef883e1e852d79fac04c0f859a9e57f811ab9b [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 behavior for different action configuration errors:
9exit status of 1, and the expected error message must be in stderr.
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp(workdir='workarea_errors')
15
16
17test.run_gyp('action_missing_name.gyp', chdir='src', status=1, stderr=None)
18expect = [
19 "Anonymous action in target broken_actions2. An action must have an 'action_name' field.",
20]
21test.must_contain_all_lines(test.stderr(), expect)
22
23
24test.pass_test()