michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2010 Google Inc. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: """ michael@0: Check that duplicate targets in a directory gives an error. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: test = TestGyp.TestGyp() michael@0: michael@0: # Require that gyp files with duplicate targets spit out an error. michael@0: test.run_gyp('all.gyp', chdir='src', status=1, stderr=None) michael@0: michael@0: test.pass_test()