gyptest-exclusion.py 536 B

12345678910111213141516171819202122
  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. Verifies that exclusions (e.g. sources!) are respected. Excluded sources
  7. that do not exist should not prevent the build from succeeding.
  8. """
  9. import TestGyp
  10. test = TestGyp.TestGyp()
  11. test.run_gyp('exclusion.gyp')
  12. test.build('exclusion.gyp')
  13. # executables
  14. test.built_file_must_exist('hello' + test._exe, test.EXECUTABLE, bare=True)
  15. test.pass_test()