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 simplest-possible build of a "Hello, world!" program
9using an explicit build target of 'all'.
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp(workdir='workarea_all')
15
16test.run_gyp('hello.gyp')
17
18test.build('hello.gyp', test.ALL)
19
20test.run_built_executable('hello', stdout="Hello, world!\n")
21
22test.up_to_date('hello.gyp', test.ALL)
23
24test.pass_test()
25