aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2015-09-08 11:34:27 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2015-09-08 11:34:27 -0400
commit3eb082def5c70d6566eb32cc9eea66aaf4832407 (patch)
treefd7c4007d94d1f3ecbc947bcd5c4471bd37da4a6 /UnitTesting
parentf764107cc98558ea88b20c00443388aa2bcaf3af (diff)
Minor update for Xcode 6 unittesting wrapper
Diffstat (limited to 'UnitTesting')
-rwxr-xr-xUnitTesting/RunMacOSUnitTests.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/UnitTesting/RunMacOSUnitTests.sh b/UnitTesting/RunMacOSUnitTests.sh
index 14cb66c..2f72a12 100755
--- a/UnitTesting/RunMacOSUnitTests.sh
+++ b/UnitTesting/RunMacOSUnitTests.sh
@@ -25,6 +25,9 @@ set -o nounset
# Uncomment the next line to trace execution.
#set -o verbose
+# Required to make Xcode 6 actually run tests.
+export TEST_AFTER_BUILD=YES
+
# Controlling environment variables:
#
# GTM_DISABLE_ZOMBIES -
@@ -237,7 +240,7 @@ RunTests() {
VALID_ARCHS="${LEAK_TEST_ARCHS}"
GTMXcodeNote ${LINENO} "Leak checking enabled for $ARCHS. Ignoring leaks from $GTM_LEAKS_SYMBOLS_TO_IGNORE."
SetMemoryVariables
- MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
+ MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunTargetUnitTests"
# Running leaks on architectures that don't support leaks.
unset MallocStackLogging
@@ -245,7 +248,7 @@ RunTests() {
ARCHS="${NO_LEAK_TEST_ARCHS}"
VALID_ARCHS="${NO_LEAK_TEST_ARCHS}"
GTMXcodeNote ${LINENO} "Leak checking disabled for $ARCHS due to no support for leaks on platform".
- MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
+ MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunTargetUnitTests"
}
if [ ! $GTM_DO_NOT_REMOVE_GCOV_DATA ]; then
@@ -269,5 +272,5 @@ if [ $GTM_ENABLE_LEAKS -ne 0 ]; then
else
GTMXcodeNote ${LINENO} "Leak checking disabled."
SetMemoryVariables
- MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
+ MaybeFlock "${SYSTEM_DEVELOPER_DIR}/Tools/RunTargetUnitTests"
fi