mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-29 00:50:33 +00:00
see ChangeLog
Monotone-Revision: 9054022ef1ca8aeba6e34842d27d9b94ce002b89 Monotone-Author: dev-unix.inverse.qc.ca Monotone-Date: 2006-06-15T19:34:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# $Id$
|
||||
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
|
||||
TOOL_NAME = test
|
||||
|
||||
test_OBJC_FILES += test1.m
|
||||
|
||||
ADDITIONAL_TOOL_LIBS += -lOGoContentStore
|
||||
|
||||
ADDITIONAL_LIB_DIRS += -L../../$(GNUSTEP_OBJ_DIR)
|
||||
|
||||
-include GNUmakefile.preamble
|
||||
include $(GNUSTEP_MAKEFILES)/tool.make
|
||||
-include GNUmakefile.postamble
|
||||
@@ -0,0 +1,3 @@
|
||||
// $Id$
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
@@ -0,0 +1,31 @@
|
||||
// $Id$
|
||||
|
||||
#include "common.h"
|
||||
|
||||
static void testurl(NSString *s) {
|
||||
NSURL *url;
|
||||
|
||||
url = [NSURL URLWithString:s];
|
||||
NSLog(@"url: %@", url);
|
||||
NSLog(@" login: %@", [url user]);
|
||||
NSLog(@" pwd: %@", [url password]);
|
||||
}
|
||||
|
||||
static void test(void) {
|
||||
testurl(@"http://OGoUser:OGoPwd@localhost/OGo");
|
||||
testurl(@"postgresql://OGoUser:OGoPwd@localhost/OGo");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv, char **env) {
|
||||
NSAutoreleasePool *pool;
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
#if LIB_FOUNDATION_LIBRARY
|
||||
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
|
||||
#endif
|
||||
|
||||
test();
|
||||
|
||||
[pool release];
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user