gyptest-all.py 524 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. # Copyright (c) 2014 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. """Verifies that depfile fields are output in ninja rules."""
  6. import TestGyp
  7. test = TestGyp.TestGyp()
  8. if test.format == 'ninja':
  9. test.run_gyp('depfile.gyp')
  10. contents = open(test.built_file_path('obj/depfile_target.ninja')).read()
  11. expected = 'depfile = depfile.d'
  12. if expected not in contents:
  13. test.fail_test()
  14. test.pass_test()