Browse Source

test

works_for_me
Volker Birk 2 years ago
parent
commit
80f657a995
3 changed files with 202 additions and 4 deletions
  1. +140
    -4
      pEpMacOSAdapter.xcodeproj/project.pbxproj
  2. +22
    -0
      pEpUpdater Test/Info.plist
  3. +40
    -0
      pEpUpdater Test/pEpUpdater_Test.m

+ 140
- 4
pEpMacOSAdapter.xcodeproj/project.pbxproj View File

@ -12,10 +12,17 @@
35DC18D8244DA19100FB2002 /* pEpMacOSAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 35DC18D7244DA19100FB2002 /* pEpMacOSAdapter.m */; };
35DC18DA244DA19100FB2002 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 35DC18D9244DA19100FB2002 /* main.m */; };
35F0696A247D58C800543884 /* libdownloadclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35380AD9247BBB04004A08A6 /* libdownloadclient.a */; };
35F0696C247D592D00543884 /* libboost_regex.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0696B247D592D00543884 /* libboost_regex.a */; };
35F0696E247D597500543884 /* libcryptopp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0696D247D597500543884 /* libcryptopp.a */; };
35F06970247D5B6200543884 /* libssl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0696F247D5B6200543884 /* libssl.dylib */; };
35F06972247D5C1000543884 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F06971247D5C1000543884 /* libcrypto.dylib */; };
35F0697A247DC95A00543884 /* pEpUpdater_Test.m in Sources */ = {isa = PBXBuildFile; fileRef = 35F06979247DC95A00543884 /* pEpUpdater_Test.m */; };
35F06980247DD05F00543884 /* pEpUpdater.mm in Sources */ = {isa = PBXBuildFile; fileRef = 35380AE9247C784E004A08A6 /* pEpUpdater.mm */; };
35F06981247DD13D00543884 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F06971247D5C1000543884 /* libcrypto.dylib */; };
35F06982247DD14A00543884 /* libssl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0696F247D5B6200543884 /* libssl.dylib */; };
35F06985247DD17400543884 /* libdownloadclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35380AD9247BBB04004A08A6 /* libdownloadclient.a */; };
35F06989247E318F00543884 /* libboost_regex.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F06988247E318F00543884 /* libboost_regex.dylib */; };
35F0698B247E31B100543884 /* libcryptopp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0698A247E31B100543884 /* libcryptopp.dylib */; };
35F0698E247E327600543884 /* libboost_regex.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F06988247E318F00543884 /* libboost_regex.dylib */; };
35F0698F247E329400543884 /* libcryptopp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F0698A247E31B100543884 /* libcryptopp.dylib */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -33,6 +40,13 @@
remoteGlobalIDString = 35380AC5247BBB03004A08A6;
remoteInfo = downloadclient;
};
35F0698C247E31F900543884 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 35380AD4247BBB03004A08A6 /* downloadclient.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 35380AC5247BBB03004A08A6;
remoteInfo = downloadclient;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
@ -50,6 +64,11 @@
35F0696D247D597500543884 /* libcryptopp.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcryptopp.a; path = ../../../../opt/local/lib/libcryptopp.a; sourceTree = "<group>"; };
35F0696F247D5B6200543884 /* libssl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libssl.dylib; path = ../../../../usr/lib/libssl.dylib; sourceTree = "<group>"; };
35F06971247D5C1000543884 /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcrypto.dylib; path = ../../../../usr/lib/libcrypto.dylib; sourceTree = "<group>"; };
35F06977247DC95A00543884 /* pEpUpdater Test.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "pEpUpdater Test.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
35F06979247DC95A00543884 /* pEpUpdater_Test.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = pEpUpdater_Test.m; sourceTree = "<group>"; };
35F0697B247DC95A00543884 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
35F06988247E318F00543884 /* libboost_regex.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libboost_regex.dylib; path = ../boost_1_72_0/stage/lib/libboost_regex.dylib; sourceTree = "<group>"; };
35F0698A247E31B100543884 /* libcryptopp.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcryptopp.dylib; path = ../../../../opt/local/lib/libcryptopp.dylib; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -57,14 +76,26 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
35F0698F247E329400543884 /* libcryptopp.dylib in Frameworks */,
35F0698E247E327600543884 /* libboost_regex.dylib in Frameworks */,
35F06972247D5C1000543884 /* libcrypto.dylib in Frameworks */,
35F06970247D5B6200543884 /* libssl.dylib in Frameworks */,
35F0696E247D597500543884 /* libcryptopp.a in Frameworks */,
35F0696C247D592D00543884 /* libboost_regex.a in Frameworks */,
35F0696A247D58C800543884 /* libdownloadclient.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
35F06974247DC95A00543884 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
35F0698B247E31B100543884 /* libcryptopp.dylib in Frameworks */,
35F06989247E318F00543884 /* libboost_regex.dylib in Frameworks */,
35F06985247DD17400543884 /* libdownloadclient.a in Frameworks */,
35F06981247DD13D00543884 /* libcrypto.dylib in Frameworks */,
35F06982247DD14A00543884 /* libssl.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@ -81,6 +112,7 @@
children = (
35380AD4247BBB03004A08A6 /* downloadclient.xcodeproj */,
35DC18D4244DA19100FB2002 /* pEpMacOSAdapter */,
35F06978247DC95A00543884 /* pEpUpdater Test */,
35DC18D3244DA19100FB2002 /* Products */,
35F06969247D58C800543884 /* Frameworks */,
);
@ -90,6 +122,7 @@
isa = PBXGroup;
children = (
35DC18D2244DA19100FB2002 /* pEpMacOSAdapter.xpc */,
35F06977247DC95A00543884 /* pEpUpdater Test.xctest */,
);
name = Products;
sourceTree = "<group>";
@ -112,6 +145,8 @@
35F06969247D58C800543884 /* Frameworks */ = {
isa = PBXGroup;
children = (
35F0698A247E31B100543884 /* libcryptopp.dylib */,
35F06988247E318F00543884 /* libboost_regex.dylib */,
35F06971247D5C1000543884 /* libcrypto.dylib */,
35F0696F247D5B6200543884 /* libssl.dylib */,
35F0696D247D597500543884 /* libcryptopp.a */,
@ -120,6 +155,15 @@
name = Frameworks;
sourceTree = "<group>";
};
35F06978247DC95A00543884 /* pEpUpdater Test */ = {
isa = PBXGroup;
children = (
35F06979247DC95A00543884 /* pEpUpdater_Test.m */,
35F0697B247DC95A00543884 /* Info.plist */,
);
path = "pEpUpdater Test";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -141,6 +185,24 @@
productReference = 35DC18D2244DA19100FB2002 /* pEpMacOSAdapter.xpc */;
productType = "com.apple.product-type.xpc-service";
};
35F06976247DC95A00543884 /* pEpUpdater Test */ = {
isa = PBXNativeTarget;
buildConfigurationList = 35F0697C247DC95A00543884 /* Build configuration list for PBXNativeTarget "pEpUpdater Test" */;
buildPhases = (
35F06973247DC95A00543884 /* Sources */,
35F06974247DC95A00543884 /* Frameworks */,
35F06975247DC95A00543884 /* Resources */,
);
buildRules = (
);
dependencies = (
35F0698D247E31F900543884 /* PBXTargetDependency */,
);
name = "pEpUpdater Test";
productName = "pEpUpdater Test";
productReference = 35F06977247DC95A00543884 /* pEpUpdater Test.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@ -153,6 +215,9 @@
35DC18D1244DA19100FB2002 = {
CreatedOnToolsVersion = 11.4.1;
};
35F06976247DC95A00543884 = {
CreatedOnToolsVersion = 11.5;
};
};
};
buildConfigurationList = 35DC18CD244DA19100FB2002 /* Build configuration list for PBXProject "pEpMacOSAdapter" */;
@ -175,6 +240,7 @@
projectRoot = "";
targets = (
35DC18D1244DA19100FB2002 /* pEpMacOSAdapter */,
35F06976247DC95A00543884 /* pEpUpdater Test */,
);
};
/* End PBXProject section */
@ -198,6 +264,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
35F06975247DC95A00543884 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@ -211,6 +284,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
35F06973247DC95A00543884 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
35F0697A247DC95A00543884 /* pEpUpdater_Test.m in Sources */,
35F06980247DD05F00543884 /* pEpUpdater.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@ -219,6 +301,11 @@
name = downloadclient;
targetProxy = 35F06967247D58A600543884 /* PBXContainerItemProxy */;
};
35F0698D247E31F900543884 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = downloadclient;
targetProxy = 35F0698C247E31F900543884 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@ -375,6 +462,46 @@
};
name = Release;
};
35F0697D247DC95A00543884 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = "pEpUpdater Test/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
PRODUCT_BUNDLE_IDENTIFIER = "pEp.foundation.pEpUpdater-Test";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
35F0697E247DC95A00543884 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = "pEpUpdater Test/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
PRODUCT_BUNDLE_IDENTIFIER = "pEp.foundation.pEpUpdater-Test";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@ -396,6 +523,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
35F0697C247DC95A00543884 /* Build configuration list for PBXNativeTarget "pEpUpdater Test" */ = {
isa = XCConfigurationList;
buildConfigurations = (
35F0697D247DC95A00543884 /* Debug */,
35F0697E247DC95A00543884 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 35DC18CA244DA19100FB2002 /* Project object */;


+ 22
- 0
pEpUpdater Test/Info.plist View File

@ -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>

+ 40
- 0
pEpUpdater Test/pEpUpdater_Test.m View File

@ -0,0 +1,40 @@
//
// pEpUpdater_Test.m
// pEpUpdater Test
//
// Created by Volker Birk on 27.05.20.
// Copyright © 2020 pp foundation. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "../pEpMacOSAdapter/pEpUpdater.h"
@interface pEpUpdater_Test : XCTestCase
@end
@implementation pEpUpdater_Test
- (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)testUpdate {
pEpUpdater* updater = [pEpUpdater new];
XCTAssertNil(nil);
}
/*
- (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