gyptest-no-output.py 580 B

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