Author: tfiala
Date: Mon Apr  4 14:40:29 2016
New Revision: 265340

URL: http://llvm.org/viewvc/llvm-project?rev=265340&view=rev
Log:
Xcode: run gtests when building the lldb-gtest target

This addresses the following task:
https://llvm.org/bugs/show_bug.cgi?id=27181 Xcode gtests: ensure they run, not 
just build, on Xcode target

Modified:
    lldb/trunk/lldb.xcodeproj/project.pbxproj

Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=265340&r1=265339&r2=265340&view=diff
==============================================================================
--- lldb/trunk/lldb.xcodeproj/project.pbxproj (original)
+++ lldb/trunk/lldb.xcodeproj/project.pbxproj Mon Apr  4 14:40:29 2016
@@ -6007,6 +6007,7 @@
                                239504D01BDD451400963CEA /* Sources */,
                                239504D11BDD451400963CEA /* Frameworks */,
                                239504D21BDD451400963CEA /* CopyFiles */,
+                               23B9815E1CB2E2F90059938A /* Run gtests */,
                        );
                        buildRules = (
                        );
@@ -6239,6 +6240,20 @@
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
+               23B9815E1CB2E2F90059938A /* Run gtests */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       inputPaths = (
+                       );
+                       name = "Run gtests";
+                       outputPaths = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = /bin/sh;
+                       shellScript = "# Run the just-built gtest 
executable\n\n# Uncomment this to see the steps in action\n# set -x\n\n# We 
need to hide the lldb.py that goes into BUILT_PRODUCTS\n# because it will 
conflict with finding the lldb module later,\n# which causes the python 
exception tests to fail.\nif [ -f \"${BUILT_PRODUCTS_DIR}/lldb.py\" ]; then\n   
 mv -f \"${BUILT_PRODUCTS_DIR}/lldb.py\" 
\"${BUILT_PRODUCTS_DIR}/park.lldb.py\"\nfi\n\n# Tell lldb-gtest where to find 
the lldb package\nexport 
PYTHONPATH=${BUILT_PRODUCTS_DIR}/LLDB.framework/Resources/Python\n\n# We must 
redirect stdin to /dev/null: without this, xcodebuild\n# will wait forever for 
input when we run the TestExceptionStateChecking\n# 
test.\n${BUILT_PRODUCTS_DIR}/lldb-gtest < /dev/null\nRETCODE=$?\n\nif [ -f 
\"${BUILT_PRODUCTS_DIR}/park.lldb.py\" ]; then\nmv -f 
\"${BUILT_PRODUCTS_DIR}/park.lldb.py\" 
\"${BUILT_PRODUCTS_DIR}/lldb.py\"\nfi\n\nexit ${RETCODE}";
+               };
                261B5A7511C3FA6F00AABD0A /* Fixup Framework Headers */ = {
                        isa = PBXShellScriptBuildPhase;
                        buildActionMask = 2147483647;


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to