michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2009 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: Verified things don't explode when there are targets without outputs. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: # TODO(evan): in ninja when there are no targets, there is no 'all' michael@0: # target either. Disabling this test for now. michael@0: test = TestGyp.TestGyp(formats=['!ninja']) michael@0: michael@0: test.run_gyp('nooutput.gyp', chdir='src') michael@0: test.relocate('src', 'relocate/src') michael@0: test.build('nooutput.gyp', chdir='relocate/src') michael@0: michael@0: test.pass_test()