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

Unified Diff: test/ios/xctests/gyptest-xctests.py

Issue 1410113002: Make ninja work with XCTests for iOS. (Closed) Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « test/ios/xctests/AppTests/Info.plist ('k') | test/ios/xctests/xctests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/ios/xctests/gyptest-xctests.py
diff --git a/test/ios/xctests/gyptest-xctests.py b/test/ios/xctests/gyptest-xctests.py
new file mode 100644
index 0000000000000000000000000000000000000000..16752c5002eda1676e4d0c03aa557340a487b14b
--- /dev/null
+++ b/test/ios/xctests/gyptest-xctests.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2015 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.
+
+import TestGyp
+
+"""
+Verifies that iOS XCTests can be built correctly.
+"""
+
Nico 2015/10/16 20:18:57 you probably want an if sys.platform == 'darwin':
baxley 2015/10/16 20:59:19 Done.
+#test = TestGyp.TestGyp(formats=['ninja'])
Nico 2015/10/16 20:18:57 remove
baxley 2015/10/16 20:59:20 Done.
+test = TestGyp.TestGyp(formats=['xcode', 'ninja'])
+#test.formats = ['ninja', 'xcode-ninja']
Nico 2015/10/16 20:18:57 remove
baxley 2015/10/16 20:59:20 Done.
+
+test.run_gyp('xctests.gyp')
+
+test.build('xctests.gyp', test.ALL)
+
+test.built_file_must_exist('XCTest App.app/XCTest App')
+
+test.built_file_must_exist('app_tests.xctest/app_tests')
+
+test.built_file_must_exist('obj/AppTests/app_tests.AppTests.i386.o')
+
+test.built_file_must_exist('obj/AppTests/app_tests.AppTests.x86_64.o')
+
+test.pass_test()
« no previous file with comments | « test/ios/xctests/AppTests/Info.plist ('k') | test/ios/xctests/xctests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698