Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: test/prune_targets/gyptest-prune-targets.py

Issue 24803004: Add an option to prune unwanted targets (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/prune_targets/gyptest-prune-targets.py
diff --git a/test/prune_targets/gyptest-prune-targets.py b/test/prune_targets/gyptest-prune-targets.py
new file mode 100644
index 0000000000000000000000000000000000000000..a062ab7593406a82800546f407b16bcb840ec6b3
--- /dev/null
+++ b/test/prune_targets/gyptest-prune-targets.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2013 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 --prune-targets removes the unnecessary targets.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('test1.gyp', '--prune-targets')
+
+test.build('test1.gyp', 'lib_wanted')
+test.build('test1.gyp', 'lib_wanted2')
+test.build('test1.gyp', 'lib_unwanted', status=1, stderr=None)
+test.build('test1.gyp', 'program')
+
+test.pass_test()

Powered by Google App Engine
This is Rietveld 408576698