From c7ab0fbed82f2a997eea65343a62472a4df77a15 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 16 Mar 2009 18:15:16 +0000 Subject: [Author: thomasvl] Add a simple script to the framework target to remove the gcda files when it builds so we always have up to date coverage data. R=dmaclach DELTA=16 (16 added, 0 deleted, 0 changed) --- GTM.xcodeproj/project.pbxproj | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'GTM.xcodeproj') diff --git a/GTM.xcodeproj/project.pbxproj b/GTM.xcodeproj/project.pbxproj index 83cb77f..ca7d88d 100644 --- a/GTM.xcodeproj/project.pbxproj +++ b/GTM.xcodeproj/project.pbxproj @@ -1185,6 +1185,7 @@ F42E08690D199A5B00D5DDE0 /* Resources */, F42E086A0D199A5B00D5DDE0 /* Sources */, F42E086B0D199A5B00D5DDE0 /* Frameworks */, + F4D9A60D0F6B6E3000BB52C5 /* Clean gcov data */, ); buildRules = ( ); @@ -1344,6 +1345,21 @@ shellPath = /bin/sh; shellScript = "# Nuke coverage data earch run\nexport GTM_REMOVE_GCOV_DATA=1\n# Run the unit tests in this test bundle.\n\"${SRCROOT}/UnitTesting/RunMacOSUnitTests.sh\"\n"; }; + F4D9A60D0F6B6E3000BB52C5 /* Clean gcov data */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Clean gcov data"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Since the unittests link the framework, we just nuke any gcda's each time\n# we build to be sure we get coverage data for the unittesting runs.\n\nOBJ_FILE_DIR_VAR=\"${OBJECT_FILE_DIR}-${CURRENT_VARIANT}\"\nif [ ${OBJ_FILE_DIR_VAR} != \"-\" ]; then\n if [ -d ${OBJ_FILE_DIR_VAR} ]; then\n (cd ${OBJ_FILE_DIR_VAR} && \\\n find . -type f -name \"*.gcda\" -print0 | xargs -0 rm -f )\n fi\nfi\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ -- cgit v1.2.3