gyptest-same-target-name.py 436 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # Copyright (c) 2010 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. Check that duplicate targets in a directory gives an error.
  7. """
  8. import TestGyp
  9. test = TestGyp.TestGyp()
  10. # Require that gyp files with duplicate targets spit out an error.
  11. test.run_gyp('all.gyp', chdir='src', status=1, stderr=None)
  12. test.pass_test()