Procházet zdrojové kódy

Create testing skeleton for GoogleTest

Sam Jaffe před 6 roky
rodič
revize
5131e8ab6f

+ 22 - 0
resource_factory-test/Info.plist

@@ -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>BNDL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+</dict>
+</plist>

+ 221 - 0
resource_factory.xcodeproj/project.pbxproj

@@ -7,11 +7,54 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
+		CDB23F63230B69A300AC1138 /* libresource_factory.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CD35DCDD1D612CCD00BE3686 /* libresource_factory.dylib */; };
+		CDB23F7B230B69D400AC1138 /* GoogleMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDB23F73230B69C800AC1138 /* GoogleMock.framework */; };
 /* End PBXBuildFile section */
 
+/* Begin PBXContainerItemProxy section */
+		CDB23F64230B69A300AC1138 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CD35DCD51D612CCD00BE3686 /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = CD35DCDC1D612CCD00BE3686;
+			remoteInfo = resource_factory;
+		};
+		CDB23F72230B69C800AC1138 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */;
+			proxyType = 2;
+			remoteGlobalIDString = 05818F861A685AEA0072A469;
+			remoteInfo = GoogleMock;
+		};
+		CDB23F74230B69C800AC1138 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */;
+			proxyType = 2;
+			remoteGlobalIDString = 05E96ABD1A68600C00204102;
+			remoteInfo = gmock;
+		};
+		CDB23F76230B69C800AC1138 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */;
+			proxyType = 2;
+			remoteGlobalIDString = 05E96B1F1A68634900204102;
+			remoteInfo = gtest;
+		};
+		CDB23F78230B69C800AC1138 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */;
+			proxyType = 2;
+			remoteGlobalIDString = 05818F901A685AEA0072A469;
+			remoteInfo = GoogleMockTests;
+		};
+/* End PBXContainerItemProxy section */
+
 /* Begin PBXFileReference section */
 		CD35DCDD1D612CCD00BE3686 /* libresource_factory.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libresource_factory.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
 		CDAA16FE21A3A5ED007BBA11 /* resource_factory */ = {isa = PBXFileReference; lastKnownFileType = folder; name = resource_factory; path = include/resource_factory; sourceTree = "<group>"; };
+		CDB23F5E230B69A300AC1138 /* resource_factory-test.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "resource_factory-test.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+		CDB23F62230B69A300AC1138 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GoogleMock.xcodeproj; path = "../../../gmock-xcode-master/GoogleMock.xcodeproj"; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -22,16 +65,28 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		CDB23F5B230B69A300AC1138 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				CDB23F7B230B69D400AC1138 /* GoogleMock.framework in Frameworks */,
+				CDB23F63230B69A300AC1138 /* libresource_factory.dylib in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXFrameworksBuildPhase section */
 
 /* Begin PBXGroup section */
 		CD35DCD41D612CCD00BE3686 = {
 			isa = PBXGroup;
 			children = (
+				CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */,
 				CDAA16FE21A3A5ED007BBA11 /* resource_factory */,
 				CDAA170021A3A5FE007BBA11 /* src */,
 				CDAA16FF21A3A5FE007BBA11 /* test */,
+				CDB23F5F230B69A300AC1138 /* resource_factory-test */,
 				CD35DCDE1D612CCD00BE3686 /* Products */,
+				CDB23F7A230B69D400AC1138 /* Frameworks */,
 			);
 			sourceTree = "<group>";
 		};
@@ -39,6 +94,7 @@
 			isa = PBXGroup;
 			children = (
 				CD35DCDD1D612CCD00BE3686 /* libresource_factory.dylib */,
+				CDB23F5E230B69A300AC1138 /* resource_factory-test.xctest */,
 			);
 			name = Products;
 			sourceTree = "<group>";
@@ -57,6 +113,32 @@
 			path = src;
 			sourceTree = "<group>";
 		};
+		CDB23F5F230B69A300AC1138 /* resource_factory-test */ = {
+			isa = PBXGroup;
+			children = (
+				CDB23F62230B69A300AC1138 /* Info.plist */,
+			);
+			path = "resource_factory-test";
+			sourceTree = "<group>";
+		};
+		CDB23F6C230B69C800AC1138 /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				CDB23F73230B69C800AC1138 /* GoogleMock.framework */,
+				CDB23F75230B69C800AC1138 /* gmock.framework */,
+				CDB23F77230B69C800AC1138 /* gtest.framework */,
+				CDB23F79230B69C800AC1138 /* GoogleMockTests.xctest */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		CDB23F7A230B69D400AC1138 /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
 /* End PBXGroup section */
 
 /* Begin PBXHeadersBuildPhase section */
@@ -87,6 +169,24 @@
 			productReference = CD35DCDD1D612CCD00BE3686 /* libresource_factory.dylib */;
 			productType = "com.apple.product-type.library.dynamic";
 		};
+		CDB23F5D230B69A300AC1138 /* resource_factory-test */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = CDB23F68230B69A300AC1138 /* Build configuration list for PBXNativeTarget "resource_factory-test" */;
+			buildPhases = (
+				CDB23F5A230B69A300AC1138 /* Sources */,
+				CDB23F5B230B69A300AC1138 /* Frameworks */,
+				CDB23F5C230B69A300AC1138 /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				CDB23F65230B69A300AC1138 /* PBXTargetDependency */,
+			);
+			name = "resource_factory-test";
+			productName = "resource_factory-test";
+			productReference = CDB23F5E230B69A300AC1138 /* resource_factory-test.xctest */;
+			productType = "com.apple.product-type.bundle.unit-test";
+		};
 /* End PBXNativeTarget section */
 
 /* Begin PBXProject section */
@@ -99,6 +199,10 @@
 					CD35DCDC1D612CCD00BE3686 = {
 						CreatedOnToolsVersion = 7.2.1;
 					};
+					CDB23F5D230B69A300AC1138 = {
+						CreatedOnToolsVersion = 10.3;
+						ProvisioningStyle = Automatic;
+					};
 				};
 			};
 			buildConfigurationList = CD35DCD81D612CCD00BE3686 /* Build configuration list for PBXProject "resource_factory" */;
@@ -112,13 +216,61 @@
 			mainGroup = CD35DCD41D612CCD00BE3686;
 			productRefGroup = CD35DCDE1D612CCD00BE3686 /* Products */;
 			projectDirPath = "";
+			projectReferences = (
+				{
+					ProductGroup = CDB23F6C230B69C800AC1138 /* Products */;
+					ProjectRef = CDB23F6B230B69C800AC1138 /* GoogleMock.xcodeproj */;
+				},
+			);
 			projectRoot = "";
 			targets = (
 				CD35DCDC1D612CCD00BE3686 /* resource_factory */,
+				CDB23F5D230B69A300AC1138 /* resource_factory-test */,
 			);
 		};
 /* End PBXProject section */
 
+/* Begin PBXReferenceProxy section */
+		CDB23F73230B69C800AC1138 /* GoogleMock.framework */ = {
+			isa = PBXReferenceProxy;
+			fileType = wrapper.framework;
+			path = GoogleMock.framework;
+			remoteRef = CDB23F72230B69C800AC1138 /* PBXContainerItemProxy */;
+			sourceTree = BUILT_PRODUCTS_DIR;
+		};
+		CDB23F75230B69C800AC1138 /* gmock.framework */ = {
+			isa = PBXReferenceProxy;
+			fileType = wrapper.framework;
+			path = gmock.framework;
+			remoteRef = CDB23F74230B69C800AC1138 /* PBXContainerItemProxy */;
+			sourceTree = BUILT_PRODUCTS_DIR;
+		};
+		CDB23F77230B69C800AC1138 /* gtest.framework */ = {
+			isa = PBXReferenceProxy;
+			fileType = wrapper.framework;
+			path = gtest.framework;
+			remoteRef = CDB23F76230B69C800AC1138 /* PBXContainerItemProxy */;
+			sourceTree = BUILT_PRODUCTS_DIR;
+		};
+		CDB23F79230B69C800AC1138 /* GoogleMockTests.xctest */ = {
+			isa = PBXReferenceProxy;
+			fileType = wrapper.cfbundle;
+			path = GoogleMockTests.xctest;
+			remoteRef = CDB23F78230B69C800AC1138 /* PBXContainerItemProxy */;
+			sourceTree = BUILT_PRODUCTS_DIR;
+		};
+/* End PBXReferenceProxy section */
+
+/* Begin PBXResourcesBuildPhase section */
+		CDB23F5C230B69A300AC1138 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
 /* Begin PBXSourcesBuildPhase section */
 		CD35DCD91D612CCD00BE3686 /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
@@ -127,8 +279,23 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		CDB23F5A230B69A300AC1138 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXSourcesBuildPhase section */
 
+/* Begin PBXTargetDependency section */
+		CDB23F65230B69A300AC1138 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = CD35DCDC1D612CCD00BE3686 /* resource_factory */;
+			targetProxy = CDB23F64230B69A300AC1138 /* PBXContainerItemProxy */;
+		};
+/* End PBXTargetDependency section */
+
 /* Begin XCBuildConfiguration section */
 		CD35DCE61D612CCD00BE3686 /* Debug */ = {
 			isa = XCBuildConfiguration;
@@ -181,6 +348,7 @@
 				MTL_ENABLE_DEBUG_INFO = YES;
 				ONLY_ACTIVE_ARCH = YES;
 				SDKROOT = macosx;
+				USER_HEADER_SEARCH_PATHS = ./include/;
 			};
 			name = Debug;
 		};
@@ -228,6 +396,7 @@
 				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				MTL_ENABLE_DEBUG_INFO = NO;
 				SDKROOT = macosx;
+				USER_HEADER_SEARCH_PATHS = ./include/;
 			};
 			name = Release;
 		};
@@ -257,6 +426,49 @@
 			};
 			name = Release;
 		};
+		CDB23F66230B69A300AC1138 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CODE_SIGN_STYLE = Automatic;
+				COMBINE_HIDPI_IMAGES = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				INFOPLIST_FILE = "resource_factory-test/Info.plist";
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				PRODUCT_BUNDLE_IDENTIFIER = "leumasjaffe.resource-factory-test";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Debug;
+		};
+		CDB23F67230B69A300AC1138 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CODE_SIGN_STYLE = Automatic;
+				COMBINE_HIDPI_IMAGES = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				INFOPLIST_FILE = "resource_factory-test/Info.plist";
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
+				MACOSX_DEPLOYMENT_TARGET = 10.14;
+				MTL_FAST_MATH = YES;
+				PRODUCT_BUNDLE_IDENTIFIER = "leumasjaffe.resource-factory-test";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Release;
+		};
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
@@ -278,6 +490,15 @@
 			defaultConfigurationIsVisible = 0;
 			defaultConfigurationName = Release;
 		};
+		CDB23F68230B69A300AC1138 /* Build configuration list for PBXNativeTarget "resource_factory-test" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				CDB23F66230B69A300AC1138 /* Debug */,
+				CDB23F67230B69A300AC1138 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
 /* End XCConfigurationList section */
 	};
 	rootObject = CD35DCD51D612CCD00BE3686 /* Project object */;