Home | History | Annotate | Download | only in exclusion
      1 #!/usr/bin/env python
      2 
      3 # Copyright (c) 2010 Google Inc. All rights reserved.
      4 # Use of this source code is governed by a BSD-style license that can be
      5 # found in the LICENSE file.
      6 
      7 """
      8 Verifies that exclusions (e.g. sources!) are respected.  Excluded sources
      9 that do not exist should not prevent the build from succeeding.
     10 """
     11 
     12 import TestGyp
     13 
     14 test = TestGyp.TestGyp()
     15 
     16 test.run_gyp('exclusion.gyp')
     17 test.build('exclusion.gyp')
     18 
     19 # executables
     20 test.built_file_must_exist('hello' + test._exe, test.EXECUTABLE, bare=True)
     21 
     22 test.pass_test()
     23