gyptest-all.py 623 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # Copyright (c) 2011 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. Put an object file on the sources list.
  7. Expect the result to link ok.
  8. """
  9. import TestGyp
  10. import sys
  11. if sys.platform != 'darwin':
  12. # Currently only works under the linux make build.
  13. test = TestGyp.TestGyp(formats=['make'])
  14. test.run_gyp('link-objects.gyp')
  15. test.build('link-objects.gyp', test.ALL)
  16. test.run_built_executable('link-objects', stdout="PASS\n")
  17. test.up_to_date('link-objects.gyp', test.ALL)
  18. test.pass_test()