summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py')
-rw-r--r--src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py b/src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py
new file mode 100644
index 0000000..1fc32bf
--- /dev/null
+++ b/src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2010 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 exclusions (e.g. sources!) are respected. Excluded sources
+that do not exist should not prevent the build from succeeding.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('exclusion.gyp')
+test.build('exclusion.gyp')
+
+# executables
+test.built_file_must_exist('hello' + test._exe, test.EXECUTABLE, bare=True)
+
+test.pass_test()