gyptest-none.py 574 B

1234567891011121314151617181920212223
  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 actions can be in 'none' type targets with source files.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. test.run_gyp('none_with_source_files.gyp', chdir='src')
  11. test.relocate('src', 'relocate/src')
  12. test.build('none_with_source_files.gyp', chdir='relocate/src')
  13. file_content = 'foo.cc\n'
  14. test.built_file_must_match('fake.out', file_content, chdir='relocate/src')
  15. test.pass_test()