Skip to content

Instantly share code, notes, and snippets.

@fpotter
Created October 14, 2013 20:43
Show Gist options
  • Save fpotter/6981876 to your computer and use it in GitHub Desktop.
Save fpotter/6981876 to your computer and use it in GitHub Desktop.
$ /Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/bin/xctool -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library -sdk iphonesimulator test -showTasks
================================================================================
LAUNCHING TASK (finding Xcode path via xcode-select --print-path):
/usr/bin/xcode-select \
--print-path
================================================================================
================================================================================
LAUNCHING TASK (spawning reporter task):
/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/reporters/pretty
================================================================================
================================================================================
LAUNCHING TASK (finding Xcode path via xcode-select --print-path):
/usr/bin/xcode-select \
--print-path
================================================================================
================================================================================
LAUNCHING TASK (querying available SDKs):
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: \
/bin/bash \
-c \
"'/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild' -showsdks | perl -ne '/-sdk (.*?)([\d\.]+)$/ && print "$1 $2
"'; exit ${PIPESTATUS[0]};"
================================================================================
================================================================================
LAUNCHING TASK (querying build settings for first buildable):
SHOW_ONLY_BUILD_SETTINGS_FOR_FIRST_BUILDABLE=YES \
DYLD_INSERT_LIBRARIES=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/lib/xcodebuild-fastsettings-shim.dylib \
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild \
-project \
xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj \
-scheme \
TestProject-Library \
-sdk \
iphonesimulator7.0 \
PLATFORM_NAME=iphonesimulator \
-showBuildSettings
================================================================================
[Info] Loading settings for scheme 'TestProject-Library' ... (472 ms)
=== TEST ===
xcodebuild build build
================================================================================
LAUNCHING TASK (running xcodebuild):
TERM_SESSION_ID=09464CC1-B0BC-4949-9ECC-E4F0426812B5 \
SSH_AUTH_SOCK=/tmp/launch-DSSe2X/Listeners \
NARWHAL_ENGINE=jsc \
__CHECKFIX1436934=1 \
OLDPWD=/Users/fpotter \
Apple_PubSub_Socket_Render=/tmp/launch-nBJ3SO/Render \
FLEX_HOME=/usr/local/Cellar/flex_sdk/4.6.0.23201/libexec \
LANG=en_US.UTF-8 \
DYLD_INSERT_LIBRARIES=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/lib/xcodebuild-shim.dylib \
XT_DID_SET_DYLD_FALLBACK_FRAMEWORK_PATH=YES \
PWD=/Users/fpotter/xctool \
SHELL=/bin/bash \
EDITOR=vim \
TERM_PROGRAM_VERSION=326 \
TERM_PROGRAM=Apple_Terminal \
PATH=/usr/bin:/bin:/usr/sbin:/sbin \
SHLVL=1 \
TERM=xterm-256color \
_=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/bin/xctool \
HOME=/Users/fpotter \
TMPDIR=/var/folders/hp/cd9s5cz567s31p_lkshr83sm0000gn/T/ \
USER=fpotter \
DYLD_FALLBACK_FRAMEWORK_PATH=:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:/Applications/Xcode.app/Contents/Developer/../OtherFrameworks \
LOGNAME=fpotter \
__CF_USER_TEXT_ENCODING=0x1F5:0:0 \
CAPP_BUILD=/Users/fpotter/Downloads/Starter/Build \
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild \
-configuration \
Debug \
-sdk \
iphonesimulator7.0 \
PLATFORM_NAME=iphonesimulator \
-workspace \
/var/folders/hp/cd9s5cz567s31p_lkshr83sm0000gn/T/xctool_temp_0ScHlu/Tests.xcworkspace \
-scheme \
Tests \
OBJROOT=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Intermediates \
SYMROOT=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products \
SHARED_PRECOMPS_DIR=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Intermediates/PrecompiledHeaders \
-IDECustomDerivedDataLocation=/var/folders/hp/cd9s5cz567s31p_lkshr83sm0000gn/T/xctool_temp_0ScHlu/DerivedData \
build
================================================================================
TestProject-Library / TestProject-Library (Debug)
✓ Check dependencies (19 ms)
TestProject-Library / TestProject-LibraryTests (Debug)
✓ Check dependencies (7 ms)
✓ Run custom shell script 'Run Script' (12 ms)
[Info] Collecting info for testables...
================================================================================
LAUNCHING TASK (running xcodebuild -showBuildSettings for 'TestProject-LibraryTests' target):
SHOW_ONLY_BUILD_SETTINGS_FOR_TARGET=TestProject-LibraryTests \
DYLD_INSERT_LIBRARIES=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/lib/xcodebuild-fastsettings-shim.dylib \
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild \
-configuration \
Debug \
-sdk \
iphonesimulator7.0 \
PLATFORM_NAME=iphonesimulator \
-project \
xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj \
-target \
TestProject-LibraryTests \
OBJROOT=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Intermediates \
SYMROOT=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products \
SHARED_PRECOMPS_DIR=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Intermediates/PrecompiledHeaders \
-showBuildSettings
================================================================================
================================================================================
LAUNCHING TASK (running otest-query):
NSUnbufferedIO=YES \
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk \
HOME="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
IPHONE_SIMULATOR_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk \
IPHONE_SHARED_RESOURCES_DIRECTORY="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
IPHONE_SIMULATOR_VERSIONS="iPhone Simulator (external launch) , iPhone OS 6.0 (unknown/10A403)" \
CFFIXED_USER_HOME="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/libexec/otest-query-ios \
/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products/Debug-iphonesimulator/TestProject-LibraryTests.octest
================================================================================
[Info] Collecting info for testables... (796 ms)
run-test TestProject-LibraryTests.octest (iphonesimulator7.0, logic-test, GC OFF)
================================================================================
LAUNCHING TASK (running otest/xctest on test bundle):
/usr/bin/arch -arch i386 \
-e OLDPWD=/Users/fpotter \
-e DYLD_FALLBACK_FRAMEWORK_PATH=/Developer/Library/Frameworks \
-e SSH_AUTH_SOCK=/tmp/launch-DSSe2X/Listeners \
-e FLEX_HOME=/usr/local/Cellar/flex_sdk/4.6.0.23201/libexec \
-e SHELL=/bin/bash \
-e EDITOR=vim \
-e DYLD_FRAMEWORK_PATH=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products/Debug-iphonesimulator \
-e IPHONE_SIMULATOR_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk \
-e __CHECKFIX1436934=1 \
-e TERM_PROGRAM_VERSION=326 \
-e IPHONE_SIMULATOR_VERSIONS="iPhone Simulator (external launch) , iPhone OS 6.0 (unknown/10A403)" \
-e NARWHAL_ENGINE=jsc \
-e LANG=en_US.UTF-8 \
-e HOME="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
-e PWD=/Users/fpotter/xctool \
-e TMPDIR=/var/folders/hp/cd9s5cz567s31p_lkshr83sm0000gn/T/ \
-e DYLD_LIBRARY_PATH=/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products/Debug-iphonesimulator \
-e SHLVL=1 \
-e PATH=/usr/local/narwhal/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/fpotter/bin:/Users/fpotter/devtools/arcanist/bin:/usr/local/Cellar/flex_sdk/4.6.0.23201/libexec/bin \
-e TERM=xterm-256color \
-e NSUnbufferedIO=YES \
-e DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk \
-e TERM_PROGRAM=Apple_Terminal \
-e USER=fpotter \
-e TERM_SESSION_ID=09464CC1-B0BC-4949-9ECC-E4F0426812B5 \
-e Apple_PubSub_Socket_Render=/tmp/launch-nBJ3SO/Render \
-e DYLD_INSERT_LIBRARIES=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/lib/otest-shim-ios.dylib \
-e LOGNAME=fpotter \
-e CFFIXED_USER_HOME="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
-e _=/Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/bin/xctool \
-e __CF_USER_TEXT_ENCODING=0x1F5:0:0 \
-e CAPP_BUILD=/Users/fpotter/Downloads/Starter/Build \
-e XT_DID_SET_DYLD_FALLBACK_FRAMEWORK_PATH=YES \
-e IPHONE_SHARED_RESOURCES_DIRECTORY="/Users/fpotter/Library/Application Support/iPhone Simulator/7.0" \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/usr/bin/otest \
-NSTreatUnknownArgumentsAsOpen \
NO \
-ApplePersistenceIgnoreState \
YES \
-SenTest \
OtherTests/testSomething,SomeTests/testBacktraceOutputIsCaptured,SomeTests/testOutputMerging,SomeTests/testPrintSDK,SomeTests/testStream,SomeTests/testWillFail,SomeTests/testWillPass \
-SenTestInvertScope \
NO \
/Users/fpotter/Library/Developer/Xcode/DerivedData/TestProject-Library-gqcuxcsyguaqwugnnwmftlazxbyg/Build/Products/Debug-iphonesimulator/TestProject-LibraryTests.octest
================================================================================
✓ -[OtherTests testSomething] (3 ms)
-[SomeTests testBacktraceOutputIsCaptured]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0 TestProject-LibraryTests 0x0249a81f -[SomeTests testBacktraceOutputIsCaptured] + 79
1 CoreFoundation 0x00b1bd1d __invoking___ + 29
2 CoreFoundation 0x00b1bc2a -[NSInvocation invoke] + 362
3 SenTestingKit 0x20103ecd -[SenTestCase invokeTest] + 206
4 SenTestingKit 0x20104002 -[SenTestCase performTest:] + 146
5 SenTestingKit 0x201037cc -[SenTest run] + 82
6 SenTestingKit 0x201079e0 -[SenTestSuite performTest:] + 139
7 SenTestingKit 0x201037cc -[SenTest run] + 82
8 SenTestingKit 0x201079e0 -[SenTestSuite performTest:] + 139
9 SenTestingKit 0x201037cc -[SenTest run] + 82
10 SenTestingKit 0x20106479 +[SenTestProbe runTests:] + 195
11 libobjc.A.dylib 0x007b1737 +[NSObject performSelector:withObject:] + 70
12 otest 0x00002372 otest + 4978
13 otest 0x000025c4 otest + 5572
14 otest 0x000026a5 otest + 5797
15 otest 0x00002031 otest + 4145
16 libdyld.dylib 0x9a9b570d start + 1
━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ -[SomeTests testBacktraceOutputIsCaptured] (0 ms)
-[SomeTests testOutputMerging]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
stdout-line1
stderr-line1
stdout-line2
stdout-line3
stderr-line2
stderr-line3
━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ -[SomeTests testOutputMerging] (0 ms)
-[SomeTests testPrintSDK]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2013-10-14 13:44:01.281 otest[32593:303] Unknown Device Type. Using UIUserInterfaceIdiomPhone based on screen size
2013-10-14 13:44:01.282 otest[32593:303] SDK: 7.0
━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ -[SomeTests testPrintSDK] (6 ms)
-[SomeTests testStream]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2013-10-14 13:44:01.283 otest[32593:303] >>>> i = 0
2013-10-14 13:44:01.534 otest[32593:303] >>>> i = 1
2013-10-14 13:44:01.785 otest[32593:303] >>>> i = 2
━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ -[SomeTests testStream] (754 ms)
-[SomeTests testWillFail]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/Users/fpotter/xctool/xctool/xctool-tests/TestData/TestProject-Library/TestProject-LibraryTests/SomeTests.m:41: 'a' should be equal to 'b' Strings aren't equal:
38
39 - (void)testWillFail
40 {
41 STAssertEqualObjects(@"a", @"b", @"Strings aren't equal");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42 }
43
━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✗ -[SomeTests testWillFail] (0 ms) (0)
✓ -[SomeTests testWillPass] (0 ms)
6 passed, 1 failed, 0 errored, 7 total (766 ms)
Failures:
0) -[SomeTests testWillFail] (TestProject-LibraryTests.octest)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/Users/fpotter/xctool/xctool/xctool-tests/TestData/TestProject-Library/TestProject-LibraryTests/SomeTests.m:41: 'a' should be equal to 'b' Strings aren't equal:
38
39 - (void)testWillFail
40 {
41 STAssertEqualObjects(@"a", @"b", @"Strings aren't equal");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42 }
43
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
** TEST FAILED: 6 passed, 1 failed, 0 errored, 7 total ** (2604 ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment