14fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com#!/usr/bin/env python
24fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
34fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com# Copyright (c) 2010 Google Inc. All rights reserved.
44fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com# Use of this source code is governed by a BSD-style license that can be
54fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com# found in the LICENSE file.
64fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
74fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com"""
84fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.comCheck that duplicate targets in a directory gives an error.
94fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com"""
104fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
114fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.comimport TestGyp
124fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
134fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.comtest = TestGyp.TestGyp()
144fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
154fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com# Require that gyp files with duplicate targets spit out an error.
164fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.comtest.run_gyp('all.gyp', chdir='src', status=1, stderr=None)
174fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.com
184fbc0cc5c454d4a21e346525ee1a4e5ecf35c902bradnelson@google.comtest.pass_test()
19