diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-06-01 21:01:55 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-08-04 10:25:02 +0200 |
commit | e3ee55b28d0b230d054c9718f79a1f6d685cd62b (patch) | |
tree | f54084bc01cffe87464160384e282150f744e55e /deps/gyp/test/mac/gyptest-app-error.py | |
parent | d305fbebeee1b40a405db635e6bb03535296396e (diff) | |
download | qtlocation-mapboxgl-e3ee55b28d0b230d054c9718f79a1f6d685cd62b.tar.gz |
[build] remove gyp
Diffstat (limited to 'deps/gyp/test/mac/gyptest-app-error.py')
-rwxr-xr-x | deps/gyp/test/mac/gyptest-app-error.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/deps/gyp/test/mac/gyptest-app-error.py b/deps/gyp/test/mac/gyptest-app-error.py deleted file mode 100755 index c6fe33f128..0000000000 --- a/deps/gyp/test/mac/gyptest-app-error.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2012 Google Inc. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -""" -Verifies that invalid strings files cause the build to fail. -""" - -import TestCmd -import TestGyp - -import sys - -if sys.platform == 'darwin': - print "This test is currently disabled: https://crbug.com/483696." - sys.exit(0) - - expected_error = 'Old-style plist parser: missing semicolon in dictionary' - saw_expected_error = [False] # Python2 has no "nonlocal" keyword. - def match(a, b): - if a == b: - return True - if not TestCmd.is_List(a): - a = a.split('\n') - if not TestCmd.is_List(b): - b = b.split('\n') - if expected_error in '\n'.join(a) + '\n'.join(b): - saw_expected_error[0] = True - return True - return False - test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'], match=match) - - test.run_gyp('test-error.gyp', chdir='app-bundle') - - test.build('test-error.gyp', test.ALL, chdir='app-bundle') - - # Ninja pipes stderr of subprocesses to stdout. - if test.format in ['ninja', 'xcode-ninja'] \ - and expected_error in test.stdout(): - saw_expected_error[0] = True - - if saw_expected_error[0]: - test.pass_test() - else: - test.fail_test() |