[28891] users/rhwood/MacPorts.Framework

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 10 16:03:44 PDT 2007


Revision: 28891
          http://trac.macosforge.org/projects/macports/changeset/28891
Author:   rhwood at macports.org
Date:     2007-09-10 16:03:44 -0700 (Mon, 10 Sep 2007)

Log Message:
-----------
Add new test class for the MPInterpreter class. It does not work, and if someone can create a reference test case, I would owe them a beer.

Modified Paths:
--------------
    users/rhwood/MacPorts.Framework/MacPorts.Framework.xcodeproj/project.pbxproj

Added Paths:
-----------
    users/rhwood/MacPorts.Framework/MPInterpreterTest.h
    users/rhwood/MacPorts.Framework/MPInterpreterTest.m

Added: users/rhwood/MacPorts.Framework/MPInterpreterTest.h
===================================================================
--- users/rhwood/MacPorts.Framework/MPInterpreterTest.h	                        (rev 0)
+++ users/rhwood/MacPorts.Framework/MPInterpreterTest.h	2007-09-10 23:03:44 UTC (rev 28891)
@@ -0,0 +1,18 @@
+//
+//  MPInterpreterTest.h
+//  MacPorts.Framework
+//
+//  Created by Randall Hansen Wood on 9/9/2007.
+//  Copyright 2007 __MyCompanyName__. All rights reserved.
+//
+
+#import <SenTestingKit/SenTestingKit.h>
+
+ at interface MPInterpreterTest : SenTestCase {
+
+}
+
+- (void)testDumpConfiguration;
+- (void)testGetVariableArray;
+
+ at end

Added: users/rhwood/MacPorts.Framework/MPInterpreterTest.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPInterpreterTest.m	                        (rev 0)
+++ users/rhwood/MacPorts.Framework/MPInterpreterTest.m	2007-09-10 23:03:44 UTC (rev 28891)
@@ -0,0 +1,24 @@
+//
+//  MPInterpreterTest.m
+//  MacPorts.Framework
+//
+//  Created by Randall Hansen Wood on 9/9/2007.
+//  Copyright 2007 __MyCompanyName__. All rights reserved.
+//
+
+#import "MPInterpreterTest.h"
+#import <MacPorts/MacPorts.h>
+
+ at implementation MPInterpreterTest
+
+- (void)testDumpConfiguration {
+//	MPInterpreter *interpreter = [MPInterpreter sharedInterpreter];
+//	[interpreter dumpConfiguration];
+}
+
+- (void)testGetVariableArray {
+	MPInterpreter *interpreter = [MPInterpreter sharedInterpreter];
+	STAssertEquals([[interpreter getVariable:@"macports::sources"] count], 0, "Empty array returned when should have at least 1 element.");
+}
+
+ at end

Modified: users/rhwood/MacPorts.Framework/MacPorts.Framework.xcodeproj/project.pbxproj
===================================================================
--- users/rhwood/MacPorts.Framework/MacPorts.Framework.xcodeproj/project.pbxproj	2007-09-10 22:54:42 UTC (rev 28890)
+++ users/rhwood/MacPorts.Framework/MacPorts.Framework.xcodeproj/project.pbxproj	2007-09-10 23:03:44 UTC (rev 28891)
@@ -10,6 +10,7 @@
 		48906AFD0C4230B700A3ED8A /* MPInterpreter.h in Headers */ = {isa = PBXBuildFile; fileRef = 48906AFB0C4230B700A3ED8A /* MPInterpreter.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		48906AFE0C4230B700A3ED8A /* MPInterpreter.m in Sources */ = {isa = PBXBuildFile; fileRef = 48906AFC0C4230B700A3ED8A /* MPInterpreter.m */; };
 		48906B100C42364200A3ED8A /* MPConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 48906B0F0C42364200A3ED8A /* MPConstants.h */; settings = {ATTRIBUTES = (Public, ); }; };
+		489DD92F0C94674B00595506 /* MPInterpreterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 489DD92E0C94674B00595506 /* MPInterpreterTest.m */; };
 		48E9925C0C82C45800219DDF /* MacPorts.h in Headers */ = {isa = PBXBuildFile; fileRef = 48E9925B0C82C45800219DDF /* MacPorts.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		48E992980C82C98C00219DDF /* Tcl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E992970C82C98C00219DDF /* Tcl.framework */; };
 		48E993940C82CAAE00219DDF /* MPMacPorts.h in Headers */ = {isa = PBXBuildFile; fileRef = 48E993920C82CAAE00219DDF /* MPMacPorts.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -24,7 +25,7 @@
 			isa = PBXContainerItemProxy;
 			containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
 			proxyType = 1;
-			remoteGlobalIDString = 8DC2EF4F0486A6940098B216 /* MacPorts */;
+			remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
 			remoteInfo = MacPorts;
 		};
 /* End PBXContainerItemProxy section */
@@ -39,6 +40,8 @@
 		48906B0F0C42364200A3ED8A /* MPConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPConstants.h; sourceTree = "<group>"; };
 		489DD8F40C94365F00595506 /* Test.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Test.octest; sourceTree = BUILT_PRODUCTS_DIR; };
 		489DD8F50C94365F00595506 /* Test-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Test-Info.plist"; sourceTree = "<group>"; };
+		489DD92D0C94674B00595506 /* MPInterpreterTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPInterpreterTest.h; sourceTree = "<group>"; };
+		489DD92E0C94674B00595506 /* MPInterpreterTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPInterpreterTest.m; sourceTree = "<group>"; };
 		48E9925B0C82C45800219DDF /* MacPorts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MacPorts.h; sourceTree = "<group>"; };
 		48E992970C82C98C00219DDF /* Tcl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Tcl.framework; path = /System/Library/Frameworks/Tcl.framework; sourceTree = "<absolute>"; };
 		48E993920C82CAAE00219DDF /* MPMacPorts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPMacPorts.h; sourceTree = "<group>"; };
@@ -114,6 +117,8 @@
 			children = (
 				48906AFB0C4230B700A3ED8A /* MPInterpreter.h */,
 				48906AFC0C4230B700A3ED8A /* MPInterpreter.m */,
+				489DD92D0C94674B00595506 /* MPInterpreterTest.h */,
+				489DD92E0C94674B00595506 /* MPInterpreterTest.m */,
 				48E993920C82CAAE00219DDF /* MPMacPorts.h */,
 				48E993930C82CAAE00219DDF /* MPMacPorts.m */,
 			);
@@ -259,6 +264,7 @@
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
+				489DD92F0C94674B00595506 /* MPInterpreterTest.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -360,6 +366,7 @@
 		489DD8F70C94366000595506 /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPorts.framework/MacPorts";
 				COPY_PHASE_STRIP = NO;
 				GCC_DYNAMIC_NO_PIC = NO;
 				GCC_ENABLE_FIX_AND_CONTINUE = NO;
@@ -387,6 +394,7 @@
 		489DD8F80C94366000595506 /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPorts.framework/MacPorts";
 				COPY_PHASE_STRIP = YES;
 				GCC_ENABLE_FIX_AND_CONTINUE = NO;
 				GCC_ENABLE_OBJC_EXCEPTIONS = YES;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070910/7d1f54bb/attachment.html


More information about the macports-changes mailing list