gyptest-rc-build.py 605 B

123456789101112131415161718192021222324
  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. Make sure we build and include .rc files.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
  12. CHDIR = 'rc-build'
  13. test.run_gyp('hello.gyp', chdir=CHDIR)
  14. test.build('hello.gyp', test.ALL, chdir=CHDIR)
  15. test.up_to_date('hello.gyp', 'resource_only_dll', chdir=CHDIR)
  16. test.run_built_executable('with_resources', chdir=CHDIR, status=4)
  17. test.pass_test()