mirror of
https://github.com/macports/pallet.git
synced 2026-07-12 18:18:47 -07:00
git-svn-id: https://svn.macports.org/repository/macports/contrib/MacPorts_Framework@39835 d073be05-634f-4543-b044-5fe20cf6d1d6
43 lines
884 B
Objective-C
43 lines
884 B
Objective-C
//
|
|
// MPHelperToolTest.m
|
|
// MacPorts.Framework
|
|
//
|
|
// Created by George Armah on 8/5/08.
|
|
// Copyright 2008 Lafayette College. All rights reserved.
|
|
//
|
|
|
|
#import "MPHelperToolTest.h"
|
|
|
|
|
|
@implementation MPHelperToolTest
|
|
|
|
-(void) setUp {
|
|
interp = [MPInterpreter sharedInterpreter];
|
|
}
|
|
|
|
-(void) tearDown {
|
|
|
|
}
|
|
|
|
//- (void) testMPHelperToolWithoutRights {
|
|
// AuthorizationRef authRef;
|
|
//
|
|
//
|
|
// OSStatus junk;
|
|
//
|
|
//
|
|
// junk = AuthorizationCreate (NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authRef);
|
|
// assert(junk == noErr);
|
|
//
|
|
// [interp setAuthorizationRef:authRef];
|
|
//
|
|
// NSString * result = [interp evaluateStringWithMPHelperTool:@"mportsync"];
|
|
//
|
|
// NSLog(@"Result is %@" , result);
|
|
// STAssertTrue ( [result isEqualToString:@"TCL COMMAND EXECUTION SUCCEEDED YAAY!:"], \
|
|
// @"Result should succeed so long as we enter credentials");
|
|
//}
|
|
//
|
|
|
|
@end
|