aboutsummaryrefslogtreecommitdiff
path: root/GTMiPhone.xcodeproj
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-08-06 14:00:20 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-08-06 14:00:20 +0000
commita5f7148ae266a5c4b8125f088797b2b9102931ec (patch)
tree55b6a879d9d9e3d584d033b16d108f8014399040 /GTMiPhone.xcodeproj
parentf11640235bd13697c96b50ca18d9d239b2cfbd11 (diff)
[Author: thomasvl]
Overhaul how iOS unittests are run. Newer versions of Xcode have changes in the Simulator and supporting frameworks so the way GTM had been running unittests no longer works. The Simulator frameworks bail on launch with a zero exit code, so unless you look at the raw output, you don't even notice the tests no longer run. This new way comes from the work done in Chromium to actually launch the unittests fully under the simulator to get them a much more realistic environment. It also takes what was learned there about getting the output of the binary and how to deal with all the different ways a test and the simulator can fail to start along with all the different ways the failures/ crashing of the app can come back. There are some new env variables that let you force a version of the simulator (assuming it is installed) along with one to say if you want to run under iPhone or iPad. - Land a copy of the Chromium iossim util. - Convert RunIPhoneUnitTest over to use iossim. R=dmaclach DELTA=201 (79 added, 77 deleted, 45 changed)
Diffstat (limited to 'GTMiPhone.xcodeproj')
-rw-r--r--GTMiPhone.xcodeproj/project.pbxproj4
1 files changed, 2 insertions, 2 deletions
diff --git a/GTMiPhone.xcodeproj/project.pbxproj b/GTMiPhone.xcodeproj/project.pbxproj
index eefff17..860d99c 100644
--- a/GTMiPhone.xcodeproj/project.pbxproj
+++ b/GTMiPhone.xcodeproj/project.pbxproj
@@ -1046,7 +1046,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Nuke coverage data earch run\nexport GTM_REMOVE_GCOV_DATA=1\n\n# Enable launch daemons for security tests.\nexport GTM_DISABLE_IPHONE_LAUNCH_DAEMONS=0\n\n# Run the unit tests in this test bundle.\n${SRCROOT}/UnitTesting/RunIPhoneUnitTest.sh\n";
+ shellScript = "# Nuke coverage data each run\nexport GTM_REMOVE_GCOV_DATA=1\n\n# Run the unit tests in this test bundle.\n${SRCROOT}/UnitTesting/RunIPhoneUnitTest.sh\n";
};
F4D20EA814852BFB0001600C /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
@@ -1059,7 +1059,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
+ shellScript = "# Honor TEST_AFTER_BUILD\nexport GTM_USE_TEST_AFTER_BUILD=1\n\n# Run the unit tests in this test bundle.\n${SRCROOT}/UnitTesting/RunIPhoneUnitTest.sh\n";
};
/* End PBXShellScriptBuildPhase section */