gyptest-midl-excluded.py 514 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. # Copyright (c) 2014 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. Test that .idl files in actions and non-native rules are excluded.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
  12. CHDIR = 'idl-excluded'
  13. test.run_gyp('idl-excluded.gyp', chdir=CHDIR)
  14. test.build('idl-excluded.gyp', test.ALL, chdir=CHDIR)
  15. test.pass_test()