Skip to content

Commit

Permalink
Add logic test support
Browse files Browse the repository at this point in the history
Signed-off-by: lthrockmorton <lthrockmorton@linkedin.com>
  • Loading branch information
lthrockmorton committed Dec 21, 2023
1 parent 97ab3a0 commit af8b198
Show file tree
Hide file tree
Showing 108 changed files with 4,809 additions and 202 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
bp/BPVersion.h
bluepill/src/BPTestReportHTML.h
result.txt
result_bptestinspector.txt

# Xcode
#
Expand Down
22 changes: 22 additions & 0 deletions BPSampleApp/BPLogicTests-Info.plist
Original file line number Diff line number Diff line change
@@ -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>en</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>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
213 changes: 213 additions & 0 deletions BPSampleApp/BPSampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
BAFCCA601E36DC2000E33C31 /* BPSampleAppUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = BAFCCA5F1E36DC2000E33C31 /* BPSampleAppUITests.m */; };
E492360122EF61F300395D98 /* BPSampleAppMoarTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E492360022EF61F300395D98 /* BPSampleAppMoarTests.m */; };
E4F8A34326F3B1AD00FE1267 /* BPSampleAppNewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E4F8A33B26F3B12F00FE1267 /* BPSampleAppNewTests.m */; };
FBBBD90029A06B7B002B9115 /* BPLogicTests.m in Sources */ = {isa = PBXBuildFile; fileRef = FBBBD8F129A06B47002B9115 /* BPLogicTests.m */; };
FBD772B52A33E15D0098CEFD /* BPPassingLogicTests.m in Sources */ = {isa = PBXBuildFile; fileRef = FBD772B12A33E0620098CEFD /* BPPassingLogicTests.m */; };
FBD772C52A3483310098CEFD /* SwiftLogicTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FBD772C32A34832D0098CEFD /* SwiftLogicTests.swift */; };
FBD772C72A378F440098CEFD /* BPBulkLogicTests.m in Sources */ = {isa = PBXBuildFile; fileRef = FBD772C62A378F440098CEFD /* BPBulkLogicTests.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -115,6 +119,13 @@
E492360022EF61F300395D98 /* BPSampleAppMoarTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPSampleAppMoarTests.m; sourceTree = "<group>"; };
E4F8A33B26F3B12F00FE1267 /* BPSampleAppNewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPSampleAppNewTests.m; sourceTree = "<group>"; };
E4F8A34A26F3B1AD00FE1267 /* BPSampleAppNewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BPSampleAppNewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
FBBBD8F129A06B47002B9115 /* BPLogicTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPLogicTests.m; sourceTree = "<group>"; };
FBBBD8FE29A06B54002B9115 /* BPLogicTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BPLogicTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
FBD772B12A33E0620098CEFD /* BPPassingLogicTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPPassingLogicTests.m; sourceTree = "<group>"; };
FBD772BC2A33E15D0098CEFD /* BPPassingLogicTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BPPassingLogicTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
FBD772BD2A33E15D0098CEFD /* BPLogicTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "BPLogicTests-Info.plist"; path = "/Users/lthrockm/ios/bluepill/bluepill/BPSampleApp/BPLogicTests-Info.plist"; sourceTree = "<absolute>"; };
FBD772C32A34832D0098CEFD /* SwiftLogicTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftLogicTests.swift; sourceTree = "<group>"; };
FBD772C62A378F440098CEFD /* BPBulkLogicTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPBulkLogicTests.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -174,6 +185,20 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
FBBBD8F929A06B54002B9115 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
FBD772B72A33E15D0098CEFD /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -210,13 +235,15 @@
isa = PBXGroup;
children = (
BAB24F301DB5D45E00867756 /* BPSampleApp */,
FBBBD8F029A06B47002B9115 /* LogicTests */,
BAB24F4A1DB5D45E00867756 /* BPSampleAppTests */,
BAB24F5B1DB5D83C00867756 /* BPAppNegativeTests */,
BAA4DA381DC3C02B00A58BCC /* BPSampleAppCrashingTests */,
BA4BCFC71DC47EC800592FA4 /* BPSampleAppHangingTests */,
BA9C2DD31DD7F182007CB967 /* BPSampleAppFatalErrorTests */,
BAFCCA5E1E36DC2000E33C31 /* BPSampleAppUITests */,
BAB24F2F1DB5D45E00867756 /* Products */,
FBD772BD2A33E15D0098CEFD /* BPLogicTests-Info.plist */,
);
sourceTree = "<group>";
};
Expand All @@ -231,6 +258,8 @@
BA9C2DD21DD7F182007CB967 /* BPSampleAppFatalErrorTests.xctest */,
BAFCCA5D1E36DC2000E33C31 /* BPSampleAppUITests.xctest */,
E4F8A34A26F3B1AD00FE1267 /* BPSampleAppNewTests.xctest */,
FBBBD8FE29A06B54002B9115 /* BPLogicTests.xctest */,
FBD772BC2A33E15D0098CEFD /* BPPassingLogicTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -291,6 +320,33 @@
path = BPSampleAppUITests;
sourceTree = "<group>";
};
FBBBD8F029A06B47002B9115 /* LogicTests */ = {
isa = PBXGroup;
children = (
FBD772C82A378F6F0098CEFD /* BPLogicTests */,
FBD772C92A378F7E0098CEFD /* BPPassingLogicTests */,
);
path = LogicTests;
sourceTree = "<group>";
};
FBD772C82A378F6F0098CEFD /* BPLogicTests */ = {
isa = PBXGroup;
children = (
FBBBD8F129A06B47002B9115 /* BPLogicTests.m */,
);
path = BPLogicTests;
sourceTree = "<group>";
};
FBD772C92A378F7E0098CEFD /* BPPassingLogicTests */ = {
isa = PBXGroup;
children = (
FBD772B12A33E0620098CEFD /* BPPassingLogicTests.m */,
FBD772C62A378F440098CEFD /* BPBulkLogicTests.m */,
FBD772C32A34832D0098CEFD /* SwiftLogicTests.swift */,
);
path = BPPassingLogicTests;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -437,6 +493,40 @@
productReference = E4F8A34A26F3B1AD00FE1267 /* BPSampleAppNewTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
FBBBD8F229A06B54002B9115 /* BPLogicTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = FBBBD8FB29A06B54002B9115 /* Build configuration list for PBXNativeTarget "BPLogicTests" */;
buildPhases = (
FBBBD8F529A06B54002B9115 /* Sources */,
FBBBD8F929A06B54002B9115 /* Frameworks */,
FBBBD8FA29A06B54002B9115 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = BPLogicTests;
productName = BPSampleAppTests;
productReference = FBBBD8FE29A06B54002B9115 /* BPLogicTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
FBD772B32A33E15D0098CEFD /* BPPassingLogicTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = FBD772B92A33E15D0098CEFD /* Build configuration list for PBXNativeTarget "BPPassingLogicTests" */;
buildPhases = (
FBD772B42A33E15D0098CEFD /* Sources */,
FBD772B72A33E15D0098CEFD /* Frameworks */,
FBD772B82A33E15D0098CEFD /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = BPPassingLogicTests;
productName = BPSampleAppTests;
productReference = FBD772BC2A33E15D0098CEFD /* BPPassingLogicTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand Down Expand Up @@ -491,6 +581,12 @@
E4F8A33D26F3B1AD00FE1267 = {
DevelopmentTeam = 57Y47U492U;
};
FBBBD8F229A06B54002B9115 = {
DevelopmentTeam = 57Y47U492U;
};
FBD772B32A33E15D0098CEFD = {
DevelopmentTeam = 57Y47U492U;
};
};
};
buildConfigurationList = BAB24F291DB5D45E00867756 /* Build configuration list for PBXProject "BPSampleApp" */;
Expand All @@ -514,6 +610,8 @@
BA9C2DD11DD7F182007CB967 /* BPSampleAppFatalErrorTests */,
BAFCCA5C1E36DC2000E33C31 /* BPSampleAppUITests */,
E4F8A33D26F3B1AD00FE1267 /* BPSampleAppNewTests */,
FBBBD8F229A06B54002B9115 /* BPLogicTests */,
FBD772B32A33E15D0098CEFD /* BPPassingLogicTests */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -579,6 +677,20 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
FBBBD8FA29A06B54002B9115 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
FBD772B82A33E15D0098CEFD /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -651,6 +763,24 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
FBBBD8F529A06B54002B9115 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FBBBD90029A06B7B002B9115 /* BPLogicTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
FBD772B42A33E15D0098CEFD /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FBD772C52A3483310098CEFD /* SwiftLogicTests.swift in Sources */,
FBD772B52A33E15D0098CEFD /* BPPassingLogicTests.m in Sources */,
FBD772C72A378F440098CEFD /* BPBulkLogicTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand Down Expand Up @@ -891,6 +1021,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand Down Expand Up @@ -1057,6 +1188,70 @@
};
name = Release;
};
FBBBD8FC29A06B54002B9115 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 57Y47U492U;
INFOPLIST_FILE = "BPSampleAppTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = LI.BPSampleAppTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "BPSampleAppTests/BPSampleAppTests-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
FBBBD8FD29A06B54002B9115 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 57Y47U492U;
INFOPLIST_FILE = "BPSampleAppTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = LI.BPSampleAppTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "BPSampleAppTests/BPSampleAppTests-Bridging-Header.h";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
};
name = Release;
};
FBD772BA2A33E15D0098CEFD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 57Y47U492U;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
INFOPLIST_FILE = "BPLogicTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = LI.BPSampleAppTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "BPSampleAppTests/BPSampleAppTests-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
FBD772BB2A33E15D0098CEFD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 57Y47U492U;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
INFOPLIST_FILE = "BPLogicTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = LI.BPSampleAppTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "BPSampleAppTests/BPSampleAppTests-Bridging-Header.h";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -1141,6 +1336,24 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
FBBBD8FB29A06B54002B9115 /* Build configuration list for PBXNativeTarget "BPLogicTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FBBBD8FC29A06B54002B9115 /* Debug */,
FBBBD8FD29A06B54002B9115 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
FBD772B92A33E15D0098CEFD /* Build configuration list for PBXNativeTarget "BPPassingLogicTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FBD772BA2A33E15D0098CEFD /* Debug */,
FBD772BB2A33E15D0098CEFD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BAB24F261DB5D45E00867756 /* Project object */;
Expand Down
Loading

0 comments on commit af8b198

Please sign in to comment.