gyptest-arflags.py 497 B

12345678910111213141516171819
  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. Verifies that building a target with invalid arflags fails.
  7. """
  8. import os
  9. import sys
  10. import TestGyp
  11. test = TestGyp.TestGyp(formats=['ninja'])
  12. test.run_gyp('test.gyp')
  13. expected_status = 0 if sys.platform in ['darwin', 'win32'] else 1
  14. test.build('test.gyp', target='lib', status=expected_status)
  15. test.pass_test()