Unit tests now automatically download and build BSD'ed sources

Should make testing easier
This commit is contained in:
Johannes Fortmann 2008-08-05 15:52:14 +00:00
parent 220f7613ac
commit cd89e01536
4 changed files with 214 additions and 47 deletions

View File

@ -100,31 +100,6 @@
}
-(void)testForwardSimple
{
beenInMethodFlag=NO;
id retObj=[self doStuffWithObjects:@"First" :@"Second" :@"Third"];
STAssertTrue(beenInMethodFlag, nil);
STAssertEqualObjects(@"FirstSecondThird", retObj, nil);
beenInMethodFlag=NO;
int retInt=[self doStuffWithInts:1 :2 :3];
STAssertTrue(beenInMethodFlag, nil);
STAssertEquals(6, retInt, nil);
}
-(void)testFloatReturn
{
beenInMethodFlag=NO;
float ret=[self doStuffWithFloats:1. :2. :3.];
ret=[self doStuffWithFloats:1. :2. :3.];
STAssertTrue(beenInMethodFlag, nil);
STAssertEqualsWithAccuracy(6.0f, ret, 0.001, nil);
}
-(id)makeStringFromStructs:(NSSize)size :(char)c :(NSRange)range :(NSRect)rect :(double)d :(long long)l
{
beenInMethodFlag=YES;
@ -193,5 +168,29 @@
}
-(void)testForwardSimple
{
beenInMethodFlag=NO;
id retObj=[self doStuffWithObjects:@"First" :@"Second" :@"Third"];
STAssertTrue(beenInMethodFlag, nil);
STAssertEqualObjects(@"FirstSecondThird", retObj, nil);
beenInMethodFlag=NO;
int retInt=[self doStuffWithInts:1 :2 :3];
STAssertTrue(beenInMethodFlag, nil);
STAssertEquals(6, retInt, nil);
}
-(void)testFloatReturn
{
beenInMethodFlag=NO;
float ret=[self doStuffWithFloats:1. :2. :3.];
ret=[self doStuffWithFloats:1. :2. :3.];
STAssertTrue(beenInMethodFlag, nil);
STAssertEqualsWithAccuracy(6.0f, ret, 0.001, nil);
}
@end

View File

@ -11,8 +11,8 @@
#define TEST_TYPE(type) { size_t size, alignment;\
NSGetSizeAndAlignment(@encode(type), &size, &alignment);\
STAssertEquals(size, sizeof(type), @"size of type %i != %i", size, sizeof(type));\
STAssertEquals(alignment, __alignof__(type), @"alignment of type %i != %i", alignment, __alignof__(type)); }
STAssertEquals(size, sizeof(type), @"size of type %s: %s is %i, should be %i", #type, @encode(type), size, sizeof(type));\
STAssertEquals(alignment, __alignof__(type), @"alignment of type %s: %s is %i, should be %i", #type, @encode(type), alignment, __alignof__(type)); }
typedef struct
{
@ -36,6 +36,8 @@ typedef struct
-(void)testPrimitives
{
TEST_TYPE(float);
TEST_TYPE(double);
TEST_TYPE(long);
TEST_TYPE(int);
TEST_TYPE(char);
TEST_TYPE(void*);

View File

@ -0,0 +1,123 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 42;
objects = {
/* Begin PBXAggregateTarget section */
C8A3916D0E48A4F100A9C289 /* Download and build OCUnit */ = {
isa = PBXAggregateTarget;
buildConfigurationList = C8A391700E48A51000A9C289 /* Build configuration list for PBXAggregateTarget "Download and build OCUnit" */;
buildPhases = (
C8A3916C0E48A4F100A9C289 /* ShellScript */,
);
dependencies = (
);
name = "Download and build OCUnit";
productName = "Download OCUnit";
};
/* End PBXAggregateTarget section */
/* Begin PBXGroup section */
C8A391550E48A49900A9C289 = {
isa = PBXGroup;
children = (
);
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXProject section */
C8A391570E48A49900A9C289 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = C8A3915A0E48A49900A9C289 /* Build configuration list for PBXProject "TestingHarness" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 0;
mainGroup = C8A391550E48A49900A9C289;
projectDirPath = "";
projectRoot = "";
targets = (
C8A3916D0E48A4F100A9C289 /* Download and build OCUnit */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
C8A3916C0E48A4F100A9C289 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "# shell script goes here\n\n\ncd SenTestingKit-Projects\n\nif [ ! -e OCUnitHome-v41.tgz ]; then\n\tcurl -O http://www.sente.ch/pub/software/OCUnit/OCUnitHome-v41.tgz\nfi\n\nif [ ! -d OCUnitHome ]; then\n\ttar -zxf OCUnitHome-v41.tgz\n\tcp -r otest.xcodeproj OCUnitHome/OCUnit/SourceCode/otest/\n\tcp -r SenTestingKit.xcodeproj OCUnitHome/OCUnit/SourceCode/SenTestingKit/\n\txcodebuild -project SenTestingKit-Projects/OCUnitHome/OCUnit/SourceCode/SenTestingKit/SenTestingKit.xcodeproj\n\txcodebuild -project SenTestingKit-Projects/OCUnitHome/OCUnit/SourceCode/otest/otest.xcodeproj\nfi\n\ncd ..";
};
/* End PBXShellScriptBuildPhase section */
/* Begin XCBuildConfiguration section */
C8A391580E48A49900A9C289 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
};
name = Debug;
};
C8A391590E48A49900A9C289 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
};
name = Release;
};
C8A3916E0E48A4F200A9C289 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
PRODUCT_NAME = "Download OCUnit";
};
name = Debug;
};
C8A3916F0E48A4F200A9C289 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
PRODUCT_NAME = "Download OCUnit";
ZERO_LINK = NO;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
C8A3915A0E48A49900A9C289 /* Build configuration list for PBXProject "TestingHarness" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C8A391580E48A49900A9C289 /* Debug */,
C8A391590E48A49900A9C289 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C8A391700E48A51000A9C289 /* Build configuration list for PBXAggregateTarget "Download and build OCUnit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C8A3916E0E48A4F200A9C289 /* Debug */,
C8A3916F0E48A4F200A9C289 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = C8A391570E48A49900A9C289 /* Project object */;
}

View File

@ -12,18 +12,18 @@
C827EA570DB62A9200360D99 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C827EA560DB62A9200360D99 /* SenTestingKit.framework */; };
C827EB3B0DB63FFA00360D99 /* Properties.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EB3A0DB63FFA00360D99 /* Properties.m */; };
C827EB3C0DB63FFA00360D99 /* Properties.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EB3A0DB63FFA00360D99 /* Properties.m */; };
C827EC6A0DB6661400360D99 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EC690DB6661400360D99 /* NewStyleExceptions.m */; };
C827EC6B0DB6661400360D99 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EC690DB6661400360D99 /* NewStyleExceptions.m */; };
C84DA1BE0DB8D896000CD913 /* README in Resources */ = {isa = PBXBuildFile; fileRef = C84DA1BD0DB8D896000CD913 /* README */; };
C84DA1BF0DB8D896000CD913 /* README in Resources */ = {isa = PBXBuildFile; fileRef = C84DA1BD0DB8D896000CD913 /* README */; };
C84F02C40E1F8F17000C03D6 /* ObjCXXExceptions.mm in Sources */ = {isa = PBXBuildFile; fileRef = C84F02C20E1F8F17000C03D6 /* ObjCXXExceptions.mm */; };
C84F02C50E1F8F17000C03D6 /* ObjCXXExceptions.mm in Sources */ = {isa = PBXBuildFile; fileRef = C84F02C20E1F8F17000C03D6 /* ObjCXXExceptions.mm */; };
C84F07270E20EC7A000C03D6 /* ObjCXXExceptions.mm in Sources */ = {isa = PBXBuildFile; fileRef = C84F02C20E1F8F17000C03D6 /* ObjCXXExceptions.mm */; };
C84F07620E20F089000C03D6 /* Forwarding.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B86D90DBA0305000A8500 /* Forwarding.m */; };
C850BE140DBAA27C005F1047 /* KVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C802800DB51FEF0089C0D7 /* KVC.m */; };
C850BE150DBAA27D005F1047 /* KVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C802800DB51FEF0089C0D7 /* KVC.m */; };
C85D1F800DBBBAD7005A5FD6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
C85D1F810DBBBAD7005A5FD6 /* README in Resources */ = {isa = PBXBuildFile; fileRef = C84DA1BD0DB8D896000CD913 /* README */; };
C85D1F830DBBBAD7005A5FD6 /* Properties.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EB3A0DB63FFA00360D99 /* Properties.m */; };
C85D1F840DBBBAD7005A5FD6 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C827EC690DB6661400360D99 /* NewStyleExceptions.m */; };
C85D1F850DBBBAD7005A5FD6 /* ForEach.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B859B0DB90282000A8500 /* ForEach.m */; };
C85D1F860DBBBAD7005A5FD6 /* Forwarding.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B86D90DBA0305000A8500 /* Forwarding.m */; };
C85D1F870DBBBAD7005A5FD6 /* KVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C802800DB51FEF0089C0D7 /* KVC.m */; };
C85D1F880DBBBAD7005A5FD6 /* SizeAndAlignment.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C031A30DBB4F7D00558D7B /* SizeAndAlignment.m */; };
C85D1F8B0DBBBAD7005A5FD6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 089C1672FE841209C02AAC07 /* Foundation.framework */; };
@ -33,6 +33,9 @@
C88B859C0DB90282000A8500 /* ForEach.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B859B0DB90282000A8500 /* ForEach.m */; };
C88B859D0DB90282000A8500 /* ForEach.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B859B0DB90282000A8500 /* ForEach.m */; };
C88B86DB0DBA0305000A8500 /* Forwarding.m in Sources */ = {isa = PBXBuildFile; fileRef = C88B86D90DBA0305000A8500 /* Forwarding.m */; };
C8A24EBD0DDB468800953459 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A24EBB0DDB468700953459 /* NewStyleExceptions.m */; };
C8A24EBE0DDB468800953459 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A24EBB0DDB468700953459 /* NewStyleExceptions.m */; };
C8A24EBF0DDB468800953459 /* NewStyleExceptions.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A24EBB0DDB468700953459 /* NewStyleExceptions.m */; };
C8C031A40DBB4F7D00558D7B /* SizeAndAlignment.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C031A30DBB4F7D00558D7B /* SizeAndAlignment.m */; };
C8C031A50DBB4F7E00558D7B /* SizeAndAlignment.m in Sources */ = {isa = PBXBuildFile; fileRef = C8C031A30DBB4F7D00558D7B /* SizeAndAlignment.m */; };
C8C8030F0DB52A010089C0D7 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 089C167FFE841241C02AAC07 /* AppKit.framework */; };
@ -44,7 +47,7 @@
/* Begin PBXBuildRule section */
C85D1F8E0DBBBAD7005A5FD6 /* PBXBuildRule */ = {
isa = PBXBuildRule;
compilerSpec = org.cocotron.1.0.linux.i386.gcc.4.3.0;
compilerSpec = org.cocotron.1.0.linux.i386.gcc.4.3.1;
fileType = sourcecode.c;
isEditable = 1;
outputFiles = (
@ -52,7 +55,7 @@
};
C8C8027E0DB51FE60089C0D7 /* PBXBuildRule */ = {
isa = PBXBuildRule;
compilerSpec = "org.cocotron.1.0.windows.i386.gcc.4.2.1-llvm";
compilerSpec = org.cocotron.1.0.windows.i386.gcc.default;
fileType = sourcecode.c;
isEditable = 1;
outputFiles = (
@ -60,6 +63,16 @@
};
/* End PBXBuildRule section */
/* Begin PBXContainerItemProxy section */
C8A3926C0E48AE3700A9C289 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = C8A392530E48AD9000A9C289 /* TestingHarness.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = C8A3916D0E48A4F100A9C289 /* Download and build OCUnit */;
remoteInfo = "Download and build OCUnit";
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
089C1672FE841209C02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
@ -73,10 +86,10 @@
C827EA6F0DB630BB00360D99 /* UnitTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
C827EB390DB63FFA00360D99 /* Properties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Properties.h; sourceTree = "<group>"; };
C827EB3A0DB63FFA00360D99 /* Properties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Properties.m; sourceTree = "<group>"; };
C827EC680DB6661400360D99 /* NewStyleExceptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NewStyleExceptions.h; sourceTree = "<group>"; };
C827EC690DB6661400360D99 /* NewStyleExceptions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NewStyleExceptions.m; sourceTree = "<group>"; };
C84D62830DB61BEB000E722B /* local_server_config.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = local_server_config.sh; sourceTree = "<group>"; };
C84DA1BD0DB8D896000CD913 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = "<group>"; };
C84F02C10E1F8F17000C03D6 /* ObjCXXExceptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjCXXExceptions.h; sourceTree = "<group>"; };
C84F02C20E1F8F17000C03D6 /* ObjCXXExceptions.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ObjCXXExceptions.mm; sourceTree = "<group>"; };
C85D1F910DBBBAD7005A5FD6 /* UnitTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
C88470D90DD3A9F600853747 /* KVO.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KVO.h; sourceTree = "<group>"; };
C88470DA0DD3A9F600853747 /* KVO.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KVO.m; sourceTree = "<group>"; };
@ -84,6 +97,9 @@
C88B859B0DB90282000A8500 /* ForEach.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForEach.m; sourceTree = "<group>"; };
C88B86D80DBA0305000A8500 /* Forwarding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Forwarding.h; sourceTree = "<group>"; };
C88B86D90DBA0305000A8500 /* Forwarding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Forwarding.m; sourceTree = "<group>"; };
C8A24EBB0DDB468700953459 /* NewStyleExceptions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NewStyleExceptions.m; sourceTree = "<group>"; };
C8A24EBC0DDB468800953459 /* NewStyleExceptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NewStyleExceptions.h; sourceTree = "<group>"; };
C8A392530E48AD9000A9C289 /* TestingHarness.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = TestingHarness.xcodeproj; sourceTree = "<group>"; };
C8C031A20DBB4F7D00558D7B /* SizeAndAlignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SizeAndAlignment.h; sourceTree = "<group>"; };
C8C031A30DBB4F7D00558D7B /* SizeAndAlignment.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SizeAndAlignment.m; sourceTree = "<group>"; };
C8C8027F0DB51FEF0089C0D7 /* KVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KVC.h; sourceTree = "<group>"; };
@ -138,6 +154,7 @@
089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = {
isa = PBXGroup;
children = (
C8A392530E48AD9000A9C289 /* TestingHarness.xcodeproj */,
1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */,
1058C7AEFEA557BF11CA2CBB /* Other Frameworks */,
);
@ -160,10 +177,12 @@
C8C802800DB51FEF0089C0D7 /* KVC.m */,
C827EB390DB63FFA00360D99 /* Properties.h */,
C827EB3A0DB63FFA00360D99 /* Properties.m */,
C827EC680DB6661400360D99 /* NewStyleExceptions.h */,
C827EC690DB6661400360D99 /* NewStyleExceptions.m */,
C88B859A0DB90282000A8500 /* ForEach.h */,
C88B859B0DB90282000A8500 /* ForEach.m */,
C8A24EBC0DDB468800953459 /* NewStyleExceptions.h */,
C8A24EBB0DDB468700953459 /* NewStyleExceptions.m */,
C84F02C10E1F8F17000C03D6 /* ObjCXXExceptions.h */,
C84F02C20E1F8F17000C03D6 /* ObjCXXExceptions.mm */,
C88B86D80DBA0305000A8500 /* Forwarding.h */,
C88B86D90DBA0305000A8500 /* Forwarding.m */,
C8C031A20DBB4F7D00558D7B /* SizeAndAlignment.h */,
@ -214,6 +233,13 @@
name = "Other Sources";
sourceTree = "<group>";
};
C8A392540E48AD9000A9C289 /* Products */ = {
isa = PBXGroup;
children = (
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -230,6 +256,7 @@
C8C8027E0DB51FE60089C0D7 /* PBXBuildRule */,
);
dependencies = (
C8A3926D0E48AE3700A9C289 /* PBXTargetDependency */,
);
name = "UnitTests-i386-Windows";
productInstallPath = "$(HOME)/Library/Bundles";
@ -285,6 +312,12 @@
hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* UnitTests */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = C8A392540E48AD9000A9C289 /* Products */;
ProjectRef = C8A392530E48AD9000A9C289 /* TestingHarness.xcodeproj */;
},
);
projectRoot = "";
targets = (
C85D1F7E0DBBBAD7005A5FD6 /* UnitTests-i386-Linux */,
@ -339,14 +372,14 @@
};
C85D1F8D0DBBBAD7005A5FD6 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
buildActionMask = 8;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "mkdir $TARGET_BUILD_DIR/TestHarness\n\nif [ -f $SOURCE_ROOT/local_server_config.sh ];then\n\t. $SOURCE_ROOT/local_server_config.sh\nfi\n\nif [ \"\"$TESTING_LINK_FILES\"\" = \"YES\" ];then\n\t/Developer/Cocotron/1.0/bin/retargetBundle -link -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tln -s /Developer/Cocotron/1.0/Linux/i386/otest $TARGET_BUILD_DIR/TestHarness/otest\nelse\n\t/Developer/Cocotron/1.0/bin/retargetBundle -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tcp /Developer/Cocotron/1.0/Linux/i386/otest.exe $TARGET_BUILD_DIR/TestHarness/otest\nfi\n\nif [ \"\"$TESTING_SERVER\"\" = \"\" ];then\n\techo \"error: TESTING_SERVER not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\nif [ \"\"$TESTING_DIR\"\" = \"\" ];then\n\techo \"error: TESTING_DIR not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\necho \"#!/bin/sh\" > $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"cd $TESTING_DIR/TestHarness\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"export LD_LIBRARY_PATH=\\\"\\$LD_LIBRARY_PATH:$TESTING_DIR/TestHarness\\\"\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"./otest -SenTest All ../$WRAPPER_NAME\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\n\nssh $TESTING_SERVER -- sh $TESTING_DIR/TestHarness/run_tests.sh ";
};
@ -361,7 +394,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "mkdir $TARGET_BUILD_DIR/TestHarness\n\nif [ -f $SOURCE_ROOT/local_server_config.sh ];then\n\t. $SOURCE_ROOT/local_server_config.sh\nfi\n\nif [ \"\"$TESTING_LINK_FILES\"\" = \"YES\" ];then\n\t/Developer/Cocotron/1.0/bin/retargetBundle -link -framework AppKit -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tln -s /Developer/Cocotron/1.0/Windows/i386/otest.exe $TARGET_BUILD_DIR/TestHarness/otest.exe\nelse\n\t/Developer/Cocotron/1.0/bin/retargetBundle -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tcp /Developer/Cocotron/1.0/Windows/i386/otest.exe $TARGET_BUILD_DIR/TestHarness/otest.exe\nfi\n\nif [ \"\"$TESTING_SERVER\"\" = \"\" ];then\n\techo \"error: TESTING_SERVER not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\nif [ \"\"$TESTING_DIR\"\" = \"\" ];then\n\techo \"error: TESTING_DIR not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\necho \"#!/bin/sh\" > $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"cd $TESTING_DIR/TestHarness\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"./otest.exe -SenTest All ../$WRAPPER_NAME\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\n\nssh $TESTING_SERVER -- sh $TESTING_DIR/TestHarness/run_tests.sh ";
shellScript = "if [ ! -e $TARGET_BUILD_DIR/TestHarness ]; then\n\tmkdir $TARGET_BUILD_DIR/TestHarness\nfi\n\nif [ -e $SOURCE_ROOT/local_server_config.sh ];then\n\t. $SOURCE_ROOT/local_server_config.sh\nfi\n\nif [ \"\"$TESTING_LINK_FILES\"\" = \"YES\" ];then\n\t/Developer/Cocotron/1.0/bin/retargetBundle -link -framework AppKit -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tln -s /Developer/Cocotron/1.0/Windows/i386/otest.exe $TARGET_BUILD_DIR/TestHarness/otest.exe\nelse\n\t/Developer/Cocotron/1.0/bin/retargetBundle -framework Foundation -framework SenTestingKit -destination $TARGET_BUILD_DIR/TestHarness\n\tcp /Developer/Cocotron/1.0/Windows/i386/otest.exe $TARGET_BUILD_DIR/TestHarness/otest.exe\nfi\n\nif [ \"\"$TESTING_SERVER\"\" = \"\" ];then\n\techo \"error: TESTING_SERVER not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\nif [ \"\"$TESTING_DIR\"\" = \"\" ];then\n\techo \"error: TESTING_DIR not set; create a local_server_config.sh in source directory\"\n\texit 1\nfi\n\necho \"#!/bin/sh\" > $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"cd $TESTING_DIR/TestHarness\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\necho \"./otest.exe -SenTest All ../$WRAPPER_NAME\" >> $TARGET_BUILD_DIR/TestHarness/run_tests.sh\n\nssh $TESTING_SERVER -- sh $TESTING_DIR/TestHarness/run_tests.sh ";
};
/* End PBXShellScriptBuildPhase section */
@ -371,13 +404,14 @@
buildActionMask = 2147483647;
files = (
C827EB3C0DB63FFA00360D99 /* Properties.m in Sources */,
C827EC6B0DB6661400360D99 /* NewStyleExceptions.m in Sources */,
C88B859C0DB90282000A8500 /* ForEach.m in Sources */,
C850BE140DBAA27C005F1047 /* KVC.m in Sources */,
C8C031A40DBB4F7D00558D7B /* SizeAndAlignment.m in Sources */,
C813609D0DC4A5D800EAFF07 /* Forwarding.m in Sources */,
C8CB8CAF0DD34DA6005C1BAC /* Array.m in Sources */,
C88470DB0DD3A9F600853747 /* KVO.m in Sources */,
C8A24EBD0DDB468800953459 /* NewStyleExceptions.m in Sources */,
C84F02C40E1F8F17000C03D6 /* ObjCXXExceptions.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -386,13 +420,14 @@
buildActionMask = 2147483647;
files = (
C827EB3B0DB63FFA00360D99 /* Properties.m in Sources */,
C827EC6A0DB6661400360D99 /* NewStyleExceptions.m in Sources */,
C88B859D0DB90282000A8500 /* ForEach.m in Sources */,
C88B86DB0DBA0305000A8500 /* Forwarding.m in Sources */,
C850BE150DBAA27D005F1047 /* KVC.m in Sources */,
C8C031A50DBB4F7E00558D7B /* SizeAndAlignment.m in Sources */,
C8CB8CB00DD34DA6005C1BAC /* Array.m in Sources */,
C88470DC0DD3A9F600853747 /* KVO.m in Sources */,
C8A24EBE0DDB468800953459 /* NewStyleExceptions.m in Sources */,
C84F02C50E1F8F17000C03D6 /* ObjCXXExceptions.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -401,16 +436,25 @@
buildActionMask = 2147483647;
files = (
C85D1F830DBBBAD7005A5FD6 /* Properties.m in Sources */,
C85D1F840DBBBAD7005A5FD6 /* NewStyleExceptions.m in Sources */,
C85D1F850DBBBAD7005A5FD6 /* ForEach.m in Sources */,
C85D1F860DBBBAD7005A5FD6 /* Forwarding.m in Sources */,
C85D1F870DBBBAD7005A5FD6 /* KVC.m in Sources */,
C85D1F880DBBBAD7005A5FD6 /* SizeAndAlignment.m in Sources */,
C8A24EBF0DDB468800953459 /* NewStyleExceptions.m in Sources */,
C84F07270E20EC7A000C03D6 /* ObjCXXExceptions.mm in Sources */,
C84F07620E20F089000C03D6 /* Forwarding.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
C8A3926D0E48AE3700A9C289 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "Download and build OCUnit";
targetProxy = C8A3926C0E48AE3700A9C289 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
@ -435,6 +479,7 @@
FRAMEWORK_SEARCH_PATHS = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
GCC_DEBUGGING_SYMBOLS = full;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_SYMBOL_SEPARATION = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = UnitTests_Prefix.pch;
@ -495,17 +540,15 @@
C85D1F900DBBBAD7005A5FD6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(NATIVE_ARCH)";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = stabs;
EXECUTABLE_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Linux";
EXECUTABLE_SUFFIX = .so;
FRAMEWORK_SEARCH_PATHS = /Developer/Cocotron/1.0/Linux/i386/Frameworks;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = UnitTests_Prefix.pch;
INFOPLIST_FILE = "/Users/jobi/Projekte/cocotron/testing/UnitTests/Info copy.plist";
INFOPLIST_FILE = /Users/jobi/Projekte/cocotron/testing/UnitTests/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles";
MACH_O_TYPE = mh_dylib;
OTHER_CFLAGS = "-fgnu89-inline";