Commit 6bb12cc7 authored by lliabraa@chromium.org's avatar lliabraa@chromium.org

Add iossim testing tool for running iOS unit tests.

iossim is a command line tool used to run an iOS app in the iOS Simulator.

BUG=None
TEST=None


Review URL: https://chromiumcodereview.appspot.com/10805004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148753 0039d316-1c4b-4281-b951-d872f2087c98
parent 3e13e5e9
...@@ -412,6 +412,10 @@ deps_os = { ...@@ -412,6 +412,10 @@ deps_os = {
"src/third_party/nss": "src/third_party/nss":
"/trunk/deps/third_party/nss@" + Var("nss_revision"), "/trunk/deps/third_party/nss@" + Var("nss_revision"),
# class-dump utility to generate header files for undocumented SDKs
"src/testing/iossim/third_party/class-dump":
"/trunk/deps/third_party/class-dump@147231",
}, },
"mac": { "mac": {
"src/chrome/tools/test/reference_build/chrome_mac": "src/chrome/tools/test/reference_build/chrome_mac":
......
rohitrao@chromium.org
stuartmorgan@chromium.org
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'iphone_sim_path': '$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks',
'other_frameworks_path': '$(DEVELOPER_DIR)/../OtherFrameworks'
},
'targets': [
{
'target_name': 'iossim',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/iossim/third_party/class-dump/class-dump.gyp:class-dump',
],
'include_dirs': [
'<(INTERMEDIATE_DIR)/iossim',
],
'sources': [
'iossim.mm',
'<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h',
],
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
'<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework',
],
'mac_framework_dirs': [
'<(iphone_sim_path)',
],
'xcode_settings': {
'LD_RUNPATH_SEARCH_PATHS': [
'<(iphone_sim_path)',
'<(other_frameworks_path)',
]
},
'actions': [
{
'action_name': 'generate_iphone_sim_header',
'inputs': [
'<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework/Versions/Current/iPhoneSimulatorRemoteClient',
'$(BUILD_DIR)/$(CONFIGURATION)/class-dump',
],
'outputs': [
'<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h'
],
'action': [
# Actions don't provide a way to redirect stdout, so a custom
# script is invoked that will execute the first argument and write
# the output to the file specified as the second argument.
'<(DEPTH)/testing/iossim/RedirectStdout.sh',
'$(BUILD_DIR)/$(CONFIGURATION)/class-dump -CiPhoneSimulator <(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework',
'<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h',
],
'message': 'Generating header',
},
],
},
],
}
This diff is collapsed.
#!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This script executes the command given as the first argument and redirects
# the command's stdout to the file given as the second argument.
#
# Example: Write the text 'foo' to a file called out.txt:
# RedirectStdout.sh "echo foo" out.txt
#
# This script is invoked from iossim.gyp in order to redirect the output of
# class-dump to a file (because gyp actions don't support redirecting output).
if [ ${#} -ne 2 ] ; then
echo "usage: ${0} <command> <output file>"
exit 2
fi
exec $1 > $2
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment