adds test target

master
Andreas Buff 1 year ago
parent d8416eef2a
commit 1b4f79a8cd
  1. 137
      pEpMimeObjCAdapter.xcodeproj/project.pbxproj
  2. 22
      pEpMimeObjCAdapterTests_macOS/Info.plist
  3. 36
      pEpMimeObjCAdapterTests_macOS/pEpMimeObjCAdapterTests_macOS.m

@ -24,6 +24,8 @@
1585E94426945ACB00B822E1 /* PEPIdentity+Engine.h in Headers */ = {isa = PBXBuildFile; fileRef = 1585E94026945ACB00B822E1 /* PEPIdentity+Engine.h */; };
1585E94B2694673800B822E1 /* NSArray+Engine.m in Sources */ = {isa = PBXBuildFile; fileRef = 1585E9492694673800B822E1 /* NSArray+Engine.m */; };
1585E94C2694673800B822E1 /* NSArray+Engine.h in Headers */ = {isa = PBXBuildFile; fileRef = 1585E94A2694673800B822E1 /* NSArray+Engine.h */; };
1585E9E82695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.m in Sources */ = {isa = PBXBuildFile; fileRef = 1585E9E72695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.m */; };
1585E9EA2695BDEC00B822E1 /* libpEpMimeObjCAdapter_macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1574D1A0268DB9C8003A5161 /* libpEpMimeObjCAdapter_macOS.a */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -69,6 +71,13 @@
remoteGlobalIDString = 4E575857268329170084F02D;
remoteInfo = PEPObjCAdapterTypes_macOS;
};
1585E9EB2695BDEC00B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1574D185268DB8A1003A5161 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 1574D19F268DB9C8003A5161;
remoteInfo = pEpMimeObjCAdapter_macOS;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
@ -90,6 +99,9 @@
1585E94026945ACB00B822E1 /* PEPIdentity+Engine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "PEPIdentity+Engine.h"; sourceTree = "<group>"; };
1585E9492694673800B822E1 /* NSArray+Engine.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSArray+Engine.m"; sourceTree = "<group>"; };
1585E94A2694673800B822E1 /* NSArray+Engine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray+Engine.h"; sourceTree = "<group>"; };
1585E9E52695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = pEpMimeObjCAdapterTests_macOS.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
1585E9E72695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = pEpMimeObjCAdapterTests_macOS.m; sourceTree = "<group>"; };
1585E9E92695BDEC00B822E1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -103,6 +115,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
1585E9E22695BDEC00B822E1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1585E9EA2695BDEC00B822E1 /* libpEpMimeObjCAdapter_macOS.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@ -115,6 +135,7 @@
1585E9382694597F00B822E1 /* CodeFromObjCAdapter-needsToBeRefactoredSomewhere */,
1585E904268E132200B822E1 /* PEPMessage2MIMEUtil */,
1585E903268E130300B822E1 /* PEPMIME2PEPMessageUtil */,
1585E9E62695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS */,
1574D18E268DB8A1003A5161 /* Products */,
1585E8F8268E112A00B822E1 /* Frameworks */,
);
@ -124,6 +145,7 @@
isa = PBXGroup;
children = (
1574D1A0268DB9C8003A5161 /* libpEpMimeObjCAdapter_macOS.a */,
1585E9E52695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.xctest */,
);
name = Products;
sourceTree = "<group>";
@ -204,6 +226,31 @@
path = "CodeFromObjCAdapter-needsToBeRefactoredSomewhere";
sourceTree = "<group>";
};
1585E9E62695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS */ = {
isa = PBXGroup;
children = (
1585E9F22695BDF800B822E1 /* Resources */,
1585E9E72695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.m */,
1585E9E92695BDEC00B822E1 /* Info.plist */,
);
path = pEpMimeObjCAdapterTests_macOS;
sourceTree = "<group>";
};
1585E9F22695BDF800B822E1 /* Resources */ = {
isa = PBXGroup;
children = (
1585E9F32695BE0300B822E1 /* test_mails */,
);
path = Resources;
sourceTree = "<group>";
};
1585E9F32695BE0300B822E1 /* test_mails */ = {
isa = PBXGroup;
children = (
);
path = test_mails;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@ -244,6 +291,24 @@
productReference = 1574D1A0268DB9C8003A5161 /* libpEpMimeObjCAdapter_macOS.a */;
productType = "com.apple.product-type.library.static";
};
1585E9E42695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1585E9F12695BDEC00B822E1 /* Build configuration list for PBXNativeTarget "pEpMimeObjCAdapterTests_macOS" */;
buildPhases = (
1585E9E12695BDEC00B822E1 /* Sources */,
1585E9E22695BDEC00B822E1 /* Frameworks */,
1585E9E32695BDEC00B822E1 /* Resources */,
);
buildRules = (
);
dependencies = (
1585E9EC2695BDEC00B822E1 /* PBXTargetDependency */,
);
name = pEpMimeObjCAdapterTests_macOS;
productName = pEpMimeObjCAdapterTests_macOS;
productReference = 1585E9E52695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@ -255,6 +320,9 @@
1574D19F268DB9C8003A5161 = {
CreatedOnToolsVersion = 12.5;
};
1585E9E42695BDEC00B822E1 = {
CreatedOnToolsVersion = 12.5;
};
};
};
buildConfigurationList = 1574D188268DB8A1003A5161 /* Build configuration list for PBXProject "pEpMimeObjCAdapter" */;
@ -281,6 +349,7 @@
projectRoot = "";
targets = (
1574D19F268DB9C8003A5161 /* pEpMimeObjCAdapter_macOS */,
1585E9E42695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS */,
);
};
/* End PBXProject section */
@ -316,6 +385,16 @@
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
1585E9E32695BDEC00B822E1 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
1574D1AF268DBD55003A5161 /* Copy artefacts to custom build dir */ = {
isa = PBXShellScriptBuildPhase;
@ -354,6 +433,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
1585E9E12695BDEC00B822E1 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1585E9E82695BDEC00B822E1 /* pEpMimeObjCAdapterTests_macOS.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@ -367,6 +454,11 @@
name = PEPObjCAdapterTypes_macOS;
targetProxy = 1585E925268E15A000B822E1 /* PBXContainerItemProxy */;
};
1585E9EC2695BDEC00B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1574D19F268DB9C8003A5161 /* pEpMimeObjCAdapter_macOS */;
targetProxy = 1585E9EB2695BDEC00B822E1 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@ -515,6 +607,42 @@
};
name = Release;
};
1585E9ED2695BDEC00B822E1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = NQLYU6MGPN;
INFOPLIST_FILE = pEpMimeObjCAdapterTests_macOS/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.3;
PRODUCT_BUNDLE_IDENTIFIER = "security.pep.pEpMimeObjCAdapterTests-macOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
1585E9EE2695BDEC00B822E1 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = NQLYU6MGPN;
INFOPLIST_FILE = pEpMimeObjCAdapterTests_macOS/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.3;
PRODUCT_BUNDLE_IDENTIFIER = "security.pep.pEpMimeObjCAdapterTests-macOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@ -536,6 +664,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1585E9F12695BDEC00B822E1 /* Build configuration list for PBXNativeTarget "pEpMimeObjCAdapterTests_macOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1585E9ED2695BDEC00B822E1 /* Debug */,
1585E9EE2695BDEC00B822E1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 1574D185268DB8A1003A5161 /* Project object */;

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

@ -0,0 +1,36 @@
//
// pEpMimeObjCAdapterTests_macOS.m
// pEpMimeObjCAdapterTests_macOS
//
// Created by Andreas Buff on 07.07.21.
//
#import <XCTest/XCTest.h>
@interface pEpMimeObjCAdapterTests_macOS : XCTestCase
@end
@implementation pEpMimeObjCAdapterTests_macOS
- (void)setUp {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}
@end
Loading…
Cancel
Save