Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added new unit tests

  • Loading branch information...
commit 3d70aadc7440954ea8006e47c2009d9fdf6add88 1 parent 5bcd908
@samdeane samdeane authored
View
189 Connection.xcodeproj/project.pbxproj
@@ -23,9 +23,9 @@
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
- 09B5F7660A01D1BF001F8961 /* AbstractConnectionTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 09D6603109FD37B70000BA00 /* AbstractConnectionTest.m */; };
- 09D6603A09FD37CD0000BA00 /* Connection.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79CFD12609F702BE00172CDD /* Connection.framework */; };
- 09EB32BA0A15B801008A5C3D /* FTPConnectionTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7981F6C60A05F6D2004D775D /* FTPConnectionTest.m */; };
+ 220AD79A1509019B00748655 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 220AD7991509019B00748655 /* SenTestingKit.framework */; };
+ 220AD79C1509019B00748655 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 220AD79B1509019B00748655 /* Cocoa.framework */; };
+ 22CC56F91509048E00F94154 /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 22CC56F81509048E00F94154 /* Tests.m */; };
2702E3E11459CAFC0085BBC4 /* CKSFTPConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 2702E3DF1459CAFC0085BBC4 /* CKSFTPConnection.h */; settings = {ATTRIBUTES = (Public, ); }; };
2702E3E21459CAFC0085BBC4 /* CKSFTPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 2702E3E01459CAFC0085BBC4 /* CKSFTPConnection.m */; };
2702E3EF1459CB550085BBC4 /* CK2SFTPFileHandle.h in Headers */ = {isa = PBXBuildFile; fileRef = 2702E3E91459CB550085BBC4 /* CK2SFTPFileHandle.h */; settings = {ATTRIBUTES = (); }; };
@@ -173,7 +173,7 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
- 09D6604609FD37DD0000BA00 /* PBXContainerItemProxy */ = {
+ 220AD7AD1509021A00748655 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
proxyType = 1;
@@ -232,7 +232,6 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
- 09D6601D09FD37990000BA00 /* UnitTest.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTest.octest; sourceTree = BUILT_PRODUCTS_DIR; };
09D6601E09FD37990000BA00 /* UnitTest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UnitTest-Info.plist"; sourceTree = "<group>"; };
09D6603009FD37B70000BA00 /* AbstractConnectionTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AbstractConnectionTest.h; sourceTree = "<group>"; };
09D6603109FD37B70000BA00 /* AbstractConnectionTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AbstractConnectionTest.m; sourceTree = "<group>"; };
@@ -240,6 +239,11 @@
09D6603509FD37B70000BA00 /* SFTPConnectionTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SFTPConnectionTest.m; sourceTree = "<group>"; };
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
+ 220AD7981509019B00748655 /* UnitTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 220AD7991509019B00748655 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
+ 220AD79B1509019B00748655 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };
+ 22CC56F71509048E00F94154 /* Tests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Tests.h; sourceTree = "<group>"; };
+ 22CC56F81509048E00F94154 /* Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
2702E3DF1459CAFC0085BBC4 /* CKSFTPConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKSFTPConnection.h; sourceTree = "<group>"; };
2702E3E01459CAFC0085BBC4 /* CKSFTPConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CKSFTPConnection.m; sourceTree = "<group>"; };
2702E3E91459CB550085BBC4 /* CK2SFTPFileHandle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CK2SFTPFileHandle.h; path = SFTP/CK2SFTPFileHandle.h; sourceTree = "<group>"; };
@@ -487,11 +491,12 @@
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
- 09D6601A09FD37990000BA00 /* Frameworks */ = {
+ 220AD7941509019B00748655 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 09D6603A09FD37CD0000BA00 /* Connection.framework in Frameworks */,
+ 220AD79A1509019B00748655 /* SenTestingKit.framework in Frameworks */,
+ 220AD79C1509019B00748655 /* Cocoa.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -555,6 +560,8 @@
09D6603409FD37B70000BA00 /* SFTPConnectionTest.h */,
09D6603509FD37B70000BA00 /* SFTPConnectionTest.m */,
7981F6F80A060084004D775D /* DotMacConnectionTest.h */,
+ 22CC56F71509048E00F94154 /* Tests.h */,
+ 22CC56F81509048E00F94154 /* Tests.m */,
7981F6F90A060084004D775D /* DotMacConnectionTest.m */,
);
name = "Unit Tests";
@@ -593,9 +600,9 @@
isa = PBXGroup;
children = (
79CFD12609F702BE00172CDD /* Connection.framework */,
- 09D6601D09FD37990000BA00 /* UnitTest.octest */,
795FF4F10B0C013200EA9292 /* DropletHelper.app */,
7983E6D20B0C4DF000F5078E /* DropletLauncher */,
+ 220AD7981509019B00748655 /* UnitTests.octest */,
);
name = Products;
sourceTree = "<group>";
@@ -709,6 +716,8 @@
isa = PBXGroup;
children = (
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
+ 220AD7991509019B00748655 /* SenTestingKit.framework */,
+ 220AD79B1509019B00748655 /* Cocoa.framework */,
1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
);
name = Frameworks;
@@ -1010,23 +1019,23 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
- 09D6601C09FD37990000BA00 /* UnitTest */ = {
+ 220AD7971509019B00748655 /* UnitTests */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 09D6602609FD379A0000BA00 /* Build configuration list for PBXNativeTarget "UnitTest" */;
+ buildConfigurationList = 220AD7A71509019B00748655 /* Build configuration list for PBXNativeTarget "UnitTests" */;
buildPhases = (
- 09D6601809FD37990000BA00 /* Resources */,
- 09D6601909FD37990000BA00 /* Sources */,
- 09D6601A09FD37990000BA00 /* Frameworks */,
- 09D6601B09FD37990000BA00 /* ShellScript */,
+ 220AD7931509019B00748655 /* Sources */,
+ 220AD7941509019B00748655 /* Frameworks */,
+ 220AD7951509019B00748655 /* Resources */,
+ 220AD7961509019B00748655 /* ShellScript */,
);
buildRules = (
);
dependencies = (
- 09D6604709FD37DD0000BA00 /* PBXTargetDependency */,
+ 220AD7AE1509021A00748655 /* PBXTargetDependency */,
);
- name = UnitTest;
- productName = UnitTest;
- productReference = 09D6601D09FD37990000BA00 /* UnitTest.octest */;
+ name = UnitTests;
+ productName = Tests;
+ productReference = 220AD7981509019B00748655 /* UnitTests.octest */;
productType = "com.apple.product-type.bundle";
};
795FF4F00B0C013200EA9292 /* DropletHelper */ = {
@@ -1123,9 +1132,9 @@
targets = (
7983E7E80B0C4F2200F5078E /* Build All */,
79CFD12509F702BE00172CDD /* Framework */,
- 09D6601C09FD37990000BA00 /* UnitTest */,
795FF4F00B0C013200EA9292 /* DropletHelper */,
7983E6D10B0C4DF000F5078E /* DropletLauncher */,
+ 220AD7971509019B00748655 /* UnitTests */,
);
};
/* End PBXProject section */
@@ -1148,7 +1157,7 @@
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
- 09D6601809FD37990000BA00 /* Resources */ = {
+ 220AD7951509019B00748655 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -1202,7 +1211,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
- 09D6601B09FD37990000BA00 /* ShellScript */ = {
+ 220AD7961509019B00748655 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -1275,12 +1284,11 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
- 09D6601909FD37990000BA00 /* Sources */ = {
+ 220AD7931509019B00748655 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 09B5F7660A01D1BF001F8961 /* AbstractConnectionTest.m in Sources */,
- 09EB32BA0A15B801008A5C3D /* FTPConnectionTest.m in Sources */,
+ 22CC56F91509048E00F94154 /* Tests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1359,10 +1367,10 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
- 09D6604709FD37DD0000BA00 /* PBXTargetDependency */ = {
+ 220AD7AE1509021A00748655 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 79CFD12509F702BE00172CDD /* Framework */;
- targetProxy = 09D6604609FD37DD0000BA00 /* PBXContainerItemProxy */;
+ targetProxy = 220AD7AD1509021A00748655 /* PBXContainerItemProxy */;
};
27448C3414580FD500EB086F /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
@@ -1505,65 +1513,76 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
- 09D6602709FD379A0000BA00 /* Debug */ = {
+ 220AD7A81509019B00748655 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(value)",
- "$(DEVELOPER_FRAMEWORKS_DIR_QUOTED)",
- );
+ FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
- GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
- INFOPLIST_FILE = "UnitTest-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
);
- PRODUCT_NAME = UnitTest;
- VALID_ARCHS = i386;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ INFOPLIST_FILE = "UnitTest-Info.plist";
+ MACOSX_DEPLOYMENT_TARGET = 10.7;
+ ONLY_ACTIVE_ARCH = YES;
+ PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
};
name = Debug;
};
- 09D6602809FD379A0000BA00 /* Release */ = {
+ 220AD7A91509019B00748655 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(value)",
- "$(DEVELOPER_FRAMEWORKS_DIR_QUOTED)",
- );
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
- GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
INFOPLIST_FILE = "UnitTest-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
- );
- PRODUCT_NAME = UnitTest;
- VALID_ARCHS = i386;
+ MACOSX_DEPLOYMENT_TARGET = 10.7;
+ PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
};
name = Release;
};
+ 220AD7AA1509019B00748655 /* Plugin */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ INFOPLIST_FILE = "UnitTest-Info.plist";
+ MACOSX_DEPLOYMENT_TARGET = 10.7;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Plugin;
+ };
795FF4F80B0C013300EA9292 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -1781,39 +1800,10 @@
};
name = Plugin;
};
- 79A857920B9267CA00D9C844 /* Plugin */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- COPY_PHASE_STRIP = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(value)",
- "$(DEVELOPER_FRAMEWORKS_DIR_QUOTED)",
- );
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
- INFOPLIST_FILE = "UnitTest-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
- );
- PRODUCT_NAME = UnitTest;
- VALID_ARCHS = i386;
- WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
- };
- name = Plugin;
- };
79A857940B9267CA00D9C844 /* Plugin */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
@@ -1847,7 +1837,6 @@
"\"$(SRCROOT)/SFTP\"",
);
LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\"";
- ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-falign-loops=16";
OTHER_LDFLAGS = (
"-framework",
@@ -1906,7 +1895,7 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
@@ -1919,7 +1908,7 @@
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -1933,12 +1922,12 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 09D6602609FD379A0000BA00 /* Build configuration list for PBXNativeTarget "UnitTest" */ = {
+ 220AD7A71509019B00748655 /* Build configuration list for PBXNativeTarget "UnitTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 09D6602709FD379A0000BA00 /* Debug */,
- 09D6602809FD379A0000BA00 /* Release */,
- 79A857920B9267CA00D9C844 /* Plugin */,
+ 220AD7A81509019B00748655 /* Debug */,
+ 220AD7A91509019B00748655 /* Release */,
+ 220AD7AA1509019B00748655 /* Plugin */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
View
7 ConnectionKit.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "group:Connection.xcodeproj">
+ </FileRef>
+</Workspace>
View
13 unit test/Tests.h
@@ -0,0 +1,13 @@
+//
+// Tests.h
+// Tests
+//
+// Created by Sam Deane on 08/03/2012.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <SenTestingKit/SenTestingKit.h>
+
+@interface Tests : SenTestCase
+
+@end
View
32 unit test/Tests.m
@@ -0,0 +1,32 @@
+//
+// Tests.m
+// Tests
+//
+// Created by Sam Deane on 08/03/2012.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "Tests.h"
+
+@implementation Tests
+
+- (void)setUp
+{
+ [super setUp];
+
+ // Set-up code here.
+}
+
+- (void)tearDown
+{
+ // Tear-down code here.
+
+ [super tearDown];
+}
+
+- (void)testExample
+{
+ STFail(@"Unit tests are not implemented yet in Tests");
+}
+
+@end
Please sign in to comment.
Something went wrong with that request. Please try again.