gyptest-target.py 540 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. # Copyright (c) 2009 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 an explicit build target of 'hello'.
  8. """
  9. import TestGyp
  10. test = TestGyp.TestGyp(workdir='workarea_target')
  11. test.run_gyp('hello.gyp')
  12. test.build('hello.gyp', 'hello')
  13. test.run_built_executable('hello', stdout="Hello, world!\n")
  14. test.up_to_date('hello.gyp', 'hello')
  15. test.pass_test()