Bug 53192 - Port libzeitgeist1 tests to zeitgeist2
Summary: Port libzeitgeist1 tests to zeitgeist2
Status: RESOLVED FIXED
Alias: None
Product: Zeitgeist
Classification: Unclassified
Component: Engine (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium major
Assignee: zeitgeist-bugs@lists.freedesktop.org
QA Contact: zeitgeist-bugs@lists.freedesktop.org
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 22:01 UTC by Christian Dywan
Modified: 2013-01-14 13:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Port data source test from libzeitgeist1 (6.39 KB, application/octet-stream)
2012-08-06 22:01 UTC, Christian Dywan
Details
Port event test from libzeitgeist1 (13.94 KB, patch)
2012-08-08 00:47 UTC, Christian Dywan
Details | Splinter Review
WIP Port log test from libzeitgeist1 (5.08 KB, patch)
2012-08-20 23:37 UTC, Christian Dywan
Details | Splinter Review
WIP Retain C test cases from libzeitgeist1 (55.60 KB, patch)
2012-08-21 22:06 UTC, Christian Dywan
Details | Splinter Review
Port monitor test from libzeitgeist1 (2.74 KB, patch)
2012-08-21 22:27 UTC, Christian Dywan
Details | Splinter Review
Port monitor test from libzeitgeist1 (2.70 KB, patch)
2012-08-21 23:07 UTC, Christian Dywan
Details | Splinter Review
Fix ambiguous "Log" class: GLib.Log is wanted here (1.78 KB, patch)
2012-08-21 23:09 UTC, Christian Dywan
Details | Splinter Review
Port symbol test from libzeitgeist1 (5.35 KB, patch)
2012-08-21 23:52 UTC, Christian Dywan
Details | Splinter Review

Description Christian Dywan 2012-08-06 22:01:26 UTC
Created attachment 65211 [details]
Port data source test from libzeitgeist1

All the libzeitgeist1 test cases need to be ported to zeitgeist2 (the MIME type test is already there).

Starting with data source I'll attach patches. I will also include build/ API fixes I find due to writing test cases.
Comment 1 Christian Dywan 2012-08-08 00:47:31 UTC
Created attachment 65258 [details] [review]
Port event test from libzeitgeist1

Event tests.

There's one case for Event.set_actor_from_info. That function is absent from zg2 and I feel it's hardly useful to add since it's but a function call. But I included uncommented API and the test case, so whoever commits may decide if it's useful.
Comment 2 Seif Lotfy 2012-08-08 07:10:36 UTC
(In reply to comment #1)
> Created attachment 65258 [details] [review] [review]
> Port event test from libzeitgeist1
> 
> Event tests.
> 
> There's one case for Event.set_actor_from_info. That function is absent from
> zg2 and I feel it's hardly useful to add since it's but a function call. But I
> included uncommented API and the test case, so whoever commits may decide if
> it's useful.

Awesome job. How much beer do I owe you?
Comment 3 Christian Dywan 2012-08-20 23:37:40 UTC
Created attachment 65856 [details] [review]
WIP Port log test from libzeitgeist1
Comment 4 Seif Lotfy 2012-08-21 20:37:17 UTC
Can you try to keep the C tests too? So no need to port the rest to Vala....
Comment 5 Christian Dywan 2012-08-21 22:06:13 UTC
Created attachment 65915 [details] [review]
WIP Retain C test cases from libzeitgeist1

I agree it's good to keep C tests to verify the bindings. I suggest to have all ported to Vala *and* C, because it's valuable to notice any Vala API issues as well.
Comment 6 Christian Dywan 2012-08-21 22:27:50 UTC
Created attachment 65916 [details] [review]
Port monitor test from libzeitgeist1
Comment 7 Christian Dywan 2012-08-21 23:07:48 UTC
Created attachment 65918 [details] [review]
Port monitor test from libzeitgeist1
Comment 8 Christian Dywan 2012-08-21 23:09:25 UTC
Created attachment 65921 [details] [review]
Fix ambiguous "Log" class: GLib.Log is wanted here
Comment 9 Christian Dywan 2012-08-21 23:52:12 UTC
Created attachment 65922 [details] [review]
Port symbol test from libzeitgeist1

Note: I seem to get false failures here if I'm not mistaken. Please double-check when reviewing. This may need fixes in Symbol API.
Comment 10 Christian Dywan 2012-08-21 23:54:05 UTC
(In reply to comment #9)
> Created attachment 65922 [details] [review] [review]
> Port symbol test from libzeitgeist1
> 
> Note: I seem to get false failures here if I'm not mistaken. Please
> double-check when reviewing. This may need fixes in Symbol API.

I mean: I get test failures, which should not be failing, there may be bugs in that Symbol code.
Comment 11 Seif Lotfy 2012-08-27 12:16:33 UTC
Comment on attachment 65258 [details] [review]
Port event test from libzeitgeist1

Review of attachment 65258 [details] [review]:
-----------------------------------------------------------------

Merged
Comment 12 Seif Lotfy 2013-01-14 13:22:03 UTC
So currently we ported the tests for:
- datamodel (vala)
- datasource (c & vala)
- event (c & vala)
- log (c & vala)
- marshalling (vala)
- monitor(c & vala)
- queryoperators (vala)
- mimetypes (c & vala)
- symbol (c & vala)
- table-lookup (vala)
- timerange (c)
- timestamp (c)
- where-clause (vala)

Seems to me we ported all libzeitgeist1 tests to libzeitgeist2 in C and in Vala we have a couple more tests :D


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.