gyptest-build.py 520 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Verifies simplest-possible build of a "Hello, world!" program
  7. using the default build target.
  8. """
  9. import TestGyp
  10. test = TestGyp.TestGyp(workdir='workarea_default')
  11. test.run_gyp('hello.gyp', '--build=Default')
  12. test.run_built_executable('hello', stdout="Hello, world!\n")
  13. test.up_to_date('hello.gyp', test.DEFAULT)
  14. test.pass_test()