Testing one plugin

View: New views
4 Messages — Rating Filter:   Alert me  

Testing one plugin

by Frederico Camurca de Azevedo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody !!
        I am working in one plugin  to synchronize the application
"Contacts" in maemo platform. It is just like the evolution plugin

The question is how to test the functions of ours plugin ?? I thought
about using some tool as osyncplugin, but its deprecated ...


--
frederico <frederico.azevedo@...>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

Re: Testing one plugin

by Daniel Gollub :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 10 April 2008 13:25:54 Frederico Camurca de Azevedo wrote:
>         I am working in one plugin  to synchronize the application
> "Contacts" in maemo platform. It is just like the evolution plugin

Nice!

> The question is how to test the functions of ours plugin ?? I thought
> about using some tool as osyncplugin, but its deprecated ...

It's there but i guess it's not ported and got not build yet:
./tools/osyncplugin.c

I guess what you're looking for is to write testcases/unittests for a plugin -
right? Really good idea! I'm quite keen about unittests, and really
appreciate any testing effort in this area.

Unfortunatelly there are not that many up to date plugin tests as you already
mentioned. We might just have to port osyncplugin to the new OpenSync API.

I'll try to port this to the new OpenSync API. Hopefully there is something
working until weekend.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

Re: Testing one plugin

by Daniel Gollub :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 10 April 2008 13:37:33 Daniel Gollub wrote:
> I'll try to port this to the new OpenSync API. Hopefully there is something
> working until weekend.

Committed initial port of osyncplugin. It doesn't work yet. There is still
some porting work left. Mostly about OSyncMember method/function transition
to the OSyncObjTypeSink "object". At least some progess in this area...

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

Re: Testing one plugin

by Daniel Gollub :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 10 April 2008 14:18:21 Daniel Gollub wrote:
> On Thursday 10 April 2008 13:37:33 Daniel Gollub wrote:
> > I'll try to port this to the new OpenSync API. Hopefully there is
> > something working until weekend.
>
> Committed initial port of osyncplugin. It doesn't work yet. There is still
> some porting work left. Mostly about OSyncMember method/function transition
> to the OSyncObjTypeSink "object". At least some progess in this area...

Hmm ... wasn't really satisfied with the original code at all - so i just did
an entire rewrite of osyncplugin. It's already kind of working for the basic
plugin functions:

Generic Plugin Functions:
- initialize
- finalize

Sink specific functions:
- connect
- disconnect
- get_changes
- sync_done


http://opensync.org/changeset/3268

More to come ...

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel