Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-07-27 Thread Murray Cumming
On Tue, 2011-06-28 at 11:51 +0200, Murray Cumming wrote:
> I created a version of this patch for the master branch here:
> https://bugzilla.gnome.org/show_bug.cgi?id=653560

I seem to have accidentally pushed the version for gnome-2-32 a few days
ago:
http://git.gnome.org/browse/evolution-data-server/commit/?h=gnome-2-32&id=8127525268c617367b8a443c203f468280399cd2

Sorry. I can revert it, though I'd rather get some feedback about
pushing it to master.

-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-28 Thread Murray Cumming
I created a version of this patch for the master branch here:
https://bugzilla.gnome.org/show_bug.cgi?id=653560

-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-16 Thread Murray Cumming
On Wed, 2011-06-15 at 11:47 -0400, Matthew Barnes wrote:
> On Wed, 2011-06-15 at 16:04 +0100, Raul Gutierrez Segales wrote:
> > Right - its D-Bus activated on the newly launched session bus. I am
> > guessing what we'd need is a .service file to point to the
> > e-addressbook-factory binary inside of e-d-s' source directory. 
> > 
> > We could point the newly launched dbus-daemon to a special directory
> > of .service files via a  stanza in a custom d-bus config
> > file. 
> 
> Couldn't the test script just launch it explicitly before running any
> test programs?  Then you don't have to deal with service files at all.
> 
>   $(top_builddir)/addressbook/libedata-book/e-addressbook-factory -r
> 
> The -r (or --keep-running) is something I added fairly recently for my
> own testing.  It prevents the daemon from automatically shutting down
> when the last client connection is closed.  Then it's just a matter of
> sending the daemon a SIGTERM when tests are complete.

Thanks.

OK, this one starts and stops e-addressbook-factory for each test. How
do you like it? Note that bash scripting is really not my thing.

I guess this will need some cleverness to make it work with srcdir!
=builddir, and we might want to adapt this to start other services when
eventually used for testing other parts of EDS.


One test still fails, near the end, when calling e_book_remove(),
apparently because EBookBackendFile::priv::filename is NULL at that
point, though I can't see an obvious reason for that.
http://git.gnome.org/browse/evolution-data-server/tree/addressbook/tests/ebook/test-ebook-stress-factory--single-book.c?h=gnome-2-32#n30


** (process:20697): WARNING **: failed to remove book; Cannot remove
book: Failed to remove file '(null)': Bad address

FAIL: test-ebook-stress-factory--single-book
==
1 of 15 tests failed
Please report to
http://bugzilla.gnome.org/enter_bug.cgi?product=Evolution-Data-Server
==


-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com
>From 8127525268c617367b8a443c203f468280399cd2 Mon Sep 17 00:00:00 2001
From: Murray Cumming 
Date: Wed, 15 Jun 2011 13:15:07 +0200
Subject: [PATCH] addressbook tests: Run with private D-Bus session and environment.

* addressbook/tests/: Add a tools/ directory with .sh files from
libfolks/tests/tools/, to let us start and stop a private D-Bus
session, and set XDG_* environment variables for local use of EDS,
when running tests.
* addressbook/tests/ebook/Makefile.am: Set TESTS_ENVIRONMENT to
run the tests with the private D-Bus session.
---
 addressbook/tests/Makefile.am   |2 +-
 addressbook/tests/ebook/Makefile.am |7 ++
 addressbook/tests/tools/Makefile.am |5 +
 addressbook/tests/tools/dbus-session.sh |  114 +++
 addressbook/tests/tools/eds.sh  |   36 +++
 addressbook/tests/tools/with-session-bus-eds.sh |   45 +
 configure.ac|1 +
 7 files changed, 209 insertions(+), 1 deletions(-)
 create mode 100644 addressbook/tests/tools/Makefile.am
 create mode 100644 addressbook/tests/tools/dbus-session.sh
 create mode 100644 addressbook/tests/tools/eds.sh
 create mode 100755 addressbook/tests/tools/with-session-bus-eds.sh

diff --git a/addressbook/tests/Makefile.am b/addressbook/tests/Makefile.am
index 591bdff..36ae876 100644
--- a/addressbook/tests/Makefile.am
+++ b/addressbook/tests/Makefile.am
@@ -1,3 +1,3 @@
-SUBDIRS = vcard ebook
+SUBDIRS = tools vcard ebook
 
 -include $(top_srcdir)/git.mk
diff --git a/addressbook/tests/ebook/Makefile.am b/addressbook/tests/ebook/Makefile.am
index 32c8e40..3671344 100644
--- a/addressbook/tests/ebook/Makefile.am
+++ b/addressbook/tests/ebook/Makefile.am
@@ -22,6 +22,13 @@ TEST_LIBS =			\
 	libebook-test-utils.la	 \
 	$(NULL)
 
+RUN_WITH_PRIVATE_BUS = $(top_srcdir)/addressbook/tests/tools/with-session-bus-eds.sh
+
+TESTS_ENVIRONMENT = \
+	$(RUN_WITH_PRIVATE_BUS) \
+	--session \
+	--
+
 # Should be kept ordered approximately from least to most difficult/complex
 TESTS = \
 	test-ebook-remove			 \
diff --git a/addressbook/tests/tools/Makefile.am b/addressbook/tests/tools/Makefile.am
new file mode 100644
index 000..6abf3bc
--- /dev/null
+++ b/addressbook/tests/tools/Makefile.am
@@ -0,0 +1,5 @@
+EXTRA_DIST = \
+	with-session-bus.sh \
+	dbus-session.sh
+
+-include $(top_srcdir)/git.mk
diff --git a/addressbook/tests/tools/dbus-session.sh b/addressbook/tests/tools/dbus-session.sh
new file mode 100644
index 000..1f805bf
--- /dev/null
+++ b/addressbook/tests/tools/dbus-session.sh
@@ -0,0 +1,114 @@
+#
+# Helper functions to start your own D-Bus session.
+#
+# Refactored from with-session-bush.sh (from telepathy-glib).
+#
+# The canonical location of this program is the telepathy-glib tools/
+# directory, please s

Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-15 Thread Milan Crha
On Wed, 2011-06-15 at 11:47 -0400, Matthew Barnes wrote:
>   $(top_builddir)/addressbook/libedata-book/e-addressbook-factory -r
> 
> The -r (or --keep-running) is something I added fairly recently for my
> own testing.  It prevents the daemon from automatically shutting down
> when the last client connection is closed.  Then it's just a matter of
> sending the daemon a SIGTERM when tests are complete.

Hi,
there is 10 seconds delay for the automatic shutdown, and time between
starting each test may not be that long, it would be quite surprising if
so, then I'd rather suggest not using -r, because it's a good feedback
whether everything passed really successfully (actually, whether tests
are written correctly and whether they are freeing all what they
should), because the factory may close itself when tests are completed.

I used this feedback when working on EClient tests, and I discovered few
leaks with its help.
Bye,
Milan

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-15 Thread Matthew Barnes
On Wed, 2011-06-15 at 16:04 +0100, Raul Gutierrez Segales wrote:
> Right - its D-Bus activated on the newly launched session bus. I am
> guessing what we'd need is a .service file to point to the
> e-addressbook-factory binary inside of e-d-s' source directory. 
> 
> We could point the newly launched dbus-daemon to a special directory
> of .service files via a  stanza in a custom d-bus config
> file. 

Couldn't the test script just launch it explicitly before running any
test programs?  Then you don't have to deal with service files at all.

  $(top_builddir)/addressbook/libedata-book/e-addressbook-factory -r

The -r (or --keep-running) is something I added fairly recently for my
own testing.  It prevents the daemon from automatically shutting down
when the last client connection is closed.  Then it's just a matter of
sending the daemon a SIGTERM when tests are complete.

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-15 Thread Raul Gutierrez Segales
Le mercredi 15 juin 2011 à 13:39 +0200, Murray Cumming a écrit :
> On Thu, 2011-06-09 at 14:03 +0100, Raul Gutierrez Segales wrote:
> [snip]
> > Matthew Barnes wrote:
> > > You could probably get away with just using a date stamp instead of
> > > random characters for XX.  The key is really for each address book
> > > to have its own unique ESource ID.
> 
> The attached patch uses mktemp to create a randomly-named tmp
> directory. 
> 
> [snip]
> > > To really automate the whole thing, the test environment is gonna have
> > > to set up some kind of private D-Bus session and launch the address book
> > > service prior to running the client-side tests, and then clean up after
> > > itself.  I think that's possible but it's a bit beyond my expertise at
> > > the moment.
> > > 
> > > You can kinda see why I've been dragging my feet about fixing the tests.
> > > Haven't had enough spare cycles to really do it properly.
> > 
> > For the e-d-s backend in libfolks (not merged into master yet) we do the
> > following for our tests:
> > 
> > - set XDG_DATA_HOME, XDG_CACHE_HOME and XDG_CONFIG_HOME to a temp dir
> > - start new session bus
> > - run tests
> > - clean up temp dir
> > 
> > Relevant files:
> > 
> > http://cgit.collabora.com/git/user/rgs/folks/tree/tests/eds/Makefile.am?h=eds-0.5
> > http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/with-session-bus-eds.sh?h=eds-0.5
> > http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/eds.sh?h=eds-0.5
> 
> Many thanks for that. I've taken the relevant bits for e-d-s - see the
> attached patch against the gnome-2-32 branch. If this is OK, I can try
> to do this for the master branch.
> 
> It seems to work, though make doesn't tell me more about what's
> happening with each test than "PASSED" so I am not really sure that
> anything much is happening.
> 
> This sets the XDG_* variables, but doesn't seem to start the address
> book service, right? Or maybe that happens automatically via activation,
> though I worry that that would require "make install" before "make
> check".

Right - its D-Bus activated on the newly launched session bus. I am
guessing what we'd need is a .service file to point to the
e-addressbook-factory binary inside of e-d-s' source directory. 

We could point the newly launched dbus-daemon to a special directory
of .service files via a  stanza in a custom d-bus config
file. 

Cheers,
Raúl 

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-15 Thread Murray Cumming
On Thu, 2011-06-09 at 14:03 +0100, Raul Gutierrez Segales wrote:
[snip]
> Matthew Barnes wrote:
> > You could probably get away with just using a date stamp instead of
> > random characters for XX.  The key is really for each address book
> > to have its own unique ESource ID.

The attached patch uses mktemp to create a randomly-named tmp
directory. 

[snip]
> > To really automate the whole thing, the test environment is gonna have
> > to set up some kind of private D-Bus session and launch the address book
> > service prior to running the client-side tests, and then clean up after
> > itself.  I think that's possible but it's a bit beyond my expertise at
> > the moment.
> > 
> > You can kinda see why I've been dragging my feet about fixing the tests.
> > Haven't had enough spare cycles to really do it properly.
> 
> For the e-d-s backend in libfolks (not merged into master yet) we do the
> following for our tests:
> 
> - set XDG_DATA_HOME, XDG_CACHE_HOME and XDG_CONFIG_HOME to a temp dir
> - start new session bus
> - run tests
> - clean up temp dir
> 
> Relevant files:
> 
> http://cgit.collabora.com/git/user/rgs/folks/tree/tests/eds/Makefile.am?h=eds-0.5
> http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/with-session-bus-eds.sh?h=eds-0.5
> http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/eds.sh?h=eds-0.5

Many thanks for that. I've taken the relevant bits for e-d-s - see the
attached patch against the gnome-2-32 branch. If this is OK, I can try
to do this for the master branch.

It seems to work, though make doesn't tell me more about what's
happening with each test than "PASSED" so I am not really sure that
anything much is happening.

This sets the XDG_* variables, but doesn't seem to start the address
book service, right? Or maybe that happens automatically via activation,
though I worry that that would require "make install" before "make
check".


One test still fails for me, either with this:

** (process:5762): WARNING **: failed to remove book; Cannot remove
book: Failed to remove file '(null)': Bad address

FAIL: test-ebook-stress-factory--single-book

or this:

(process:6466): libebook-WARNING **: e-book.c:3095: cannot get book from
factory: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not
receive a reply (timeout by message bus)

** ERROR **: failed to create addressbook:
`local:/tmp/ebook-test-LBFVWV/':
GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive
a reply (timeout by message bus)
Trace/breakpoint trap
FAIL: test-ebook-stress-factory--single-book


-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com
>From 3fb4984fa7f353ac7fe2726b557dd3536419026a Mon Sep 17 00:00:00 2001
From: Murray Cumming 
Date: Wed, 15 Jun 2011 13:15:07 +0200
Subject: [PATCH] * addressbook/tests/: Add a tools/ directory with .sh files from
 libfolks/tests/tools/, to let us start and stop a private D-Bus
 session, and set XDG_* environment variables for local use of EDS,
 when running tests.
 * addressbook/tests/ebook/Makefile.am: Set TESTS_ENVIRONMENT to
 run the tests with the private D-Bus session.

---
 addressbook/tests/Makefile.am   |2 +-
 addressbook/tests/ebook/Makefile.am |7 ++
 addressbook/tests/tools/Makefile.am |5 +
 addressbook/tests/tools/dbus-session.sh |  114 +++
 addressbook/tests/tools/eds.sh  |   25 +
 addressbook/tests/tools/with-session-bus-eds.sh |   44 +
 configure.ac|1 +
 7 files changed, 197 insertions(+), 1 deletions(-)
 create mode 100644 addressbook/tests/tools/Makefile.am
 create mode 100644 addressbook/tests/tools/dbus-session.sh
 create mode 100644 addressbook/tests/tools/eds.sh
 create mode 100755 addressbook/tests/tools/with-session-bus-eds.sh

diff --git a/addressbook/tests/Makefile.am b/addressbook/tests/Makefile.am
index 591bdff..36ae876 100644
--- a/addressbook/tests/Makefile.am
+++ b/addressbook/tests/Makefile.am
@@ -1,3 +1,3 @@
-SUBDIRS = vcard ebook
+SUBDIRS = tools vcard ebook
 
 -include $(top_srcdir)/git.mk
diff --git a/addressbook/tests/ebook/Makefile.am b/addressbook/tests/ebook/Makefile.am
index 32c8e40..3671344 100644
--- a/addressbook/tests/ebook/Makefile.am
+++ b/addressbook/tests/ebook/Makefile.am
@@ -22,6 +22,13 @@ TEST_LIBS =			\
 	libebook-test-utils.la	 \
 	$(NULL)
 
+RUN_WITH_PRIVATE_BUS = $(top_srcdir)/addressbook/tests/tools/with-session-bus-eds.sh
+
+TESTS_ENVIRONMENT = \
+	$(RUN_WITH_PRIVATE_BUS) \
+	--session \
+	--
+
 # Should be kept ordered approximately from least to most difficult/complex
 TESTS = \
 	test-ebook-remove			 \
diff --git a/addressbook/tests/tools/Makefile.am b/addressbook/tests/tools/Makefile.am
new file mode 100644
index 000..6abf3bc
--- /dev/null
+++ b/addressbook/tests/tools/Makefile.am
@@ -0,0 +1,5 @@
+EXTRA_DIST = \
+	with-session-bus.sh \
+	dbus-session.sh
+
+-include $(top_srcdir)/git.mk
diff --git a/

Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-09 Thread Raul Gutierrez Segales
Le jeudi 09 juin 2011 à 06:24 -0400, Matthew Barnes a écrit :
> Resending since my original reply never made it to the mailing list for
> some reason...
> 
>  Forwarded Message 
> From: Matthew Barnes 
> To: Murray Cumming 
> Cc: evolution-hackers@gnome.org, Tristan Van Berkom
> 
> Subject: Re: [Evolution-hackers] "make check" failing in the e-d-s
> gnome-2-32
> Date: Wed, 08 Jun 2011 09:32:24 -0400
> 
> On Wed, 2011-06-08 at 10:10 +0200, Murray Cumming wrote:
> > An environment variable can be set easily, for all tests, and maybe for
> > individual tests, like so in addressbook/tests/ebook/Makefile.am:
> > 
> > +test_dir_base = "/tmp/ebook-test-yadda/"
> > +TESTS_ENVIRONMENT = \
> > +   XDG_DATA_HOME=${test_dir_base}
> > 
> > However, the necessary value for XX can only be known after the test
> > has started, right?
> 
> You could probably get away with just using a date stamp instead of
> random characters for XX.  The key is really for each address book
> to have its own unique ESource ID.  The backend will create a separate
> directory per address book under whatever we choose as the base dir.
> 
> The tricky part is the D-Bus service is what really needs the custom
> XDG_DATA_HOME, since that's where the file backend lives and only it's
> supposed to know where the data is really stored.  But unfortunately our
> test framework doesn't start the D-Bus service itself -- that's still a
> manual step before running the tests.
> 
> To really automate the whole thing, the test environment is gonna have
> to set up some kind of private D-Bus session and launch the address book
> service prior to running the client-side tests, and then clean up after
> itself.  I think that's possible but it's a bit beyond my expertise at
> the moment.
> 
> You can kinda see why I've been dragging my feet about fixing the tests.
> Haven't had enough spare cycles to really do it properly.

For the e-d-s backend in libfolks (not merged into master yet) we do the
following for our tests:

- set XDG_DATA_HOME, XDG_CACHE_HOME and XDG_CONFIG_HOME to a temp dir
- start new session bus
- run tests
- clean up temp dir

Relevant files:

http://cgit.collabora.com/git/user/rgs/folks/tree/tests/eds/Makefile.am?h=eds-0.5
http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/with-session-bus-eds.sh?h=eds-0.5
http://cgit.collabora.com/git/user/rgs/folks/tree/tests/tools/eds.sh?h=eds-0.5

Cheers,
Raúl


___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-09 Thread Matthew Barnes
Resending since my original reply never made it to the mailing list for
some reason...

 Forwarded Message 
From: Matthew Barnes 
To: Murray Cumming 
Cc: evolution-hackers@gnome.org, Tristan Van Berkom

Subject: Re: [Evolution-hackers] "make check" failing in the e-d-s
gnome-2-32
Date: Wed, 08 Jun 2011 09:32:24 -0400

On Wed, 2011-06-08 at 10:10 +0200, Murray Cumming wrote:
> An environment variable can be set easily, for all tests, and maybe for
> individual tests, like so in addressbook/tests/ebook/Makefile.am:
> 
> +test_dir_base = "/tmp/ebook-test-yadda/"
> +TESTS_ENVIRONMENT = \
> +   XDG_DATA_HOME=${test_dir_base}
> 
> However, the necessary value for XX can only be known after the test
> has started, right?

You could probably get away with just using a date stamp instead of
random characters for XX.  The key is really for each address book
to have its own unique ESource ID.  The backend will create a separate
directory per address book under whatever we choose as the base dir.

The tricky part is the D-Bus service is what really needs the custom
XDG_DATA_HOME, since that's where the file backend lives and only it's
supposed to know where the data is really stored.  But unfortunately our
test framework doesn't start the D-Bus service itself -- that's still a
manual step before running the tests.

To really automate the whole thing, the test environment is gonna have
to set up some kind of private D-Bus session and launch the address book
service prior to running the client-side tests, and then clean up after
itself.  I think that's possible but it's a bit beyond my expertise at
the moment.

You can kinda see why I've been dragging my feet about fixing the tests.
Haven't had enough spare cycles to really do it properly.



___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-08 Thread Murray Cumming
On Tue, 2011-06-07 at 08:55 -0500, Matthew Barnes wrote:
[snip]
> In order to fix the tests properly under the current API, the test
> harness would need to override the XDG_DATA_HOME environment variable to
> point to some directory in /tmp/ebook-test-XX before running the
> tests.  The file backend would then fill in the rest of the directory
> structure using XDG_DATA_HOME as the base:
> 
> /tmp/ebook-test-XX/evolution/addressbook/${ESOURCE_UID}

Thanks.

An environment variable can be set easily, for all tests, and maybe for
individual tests, like so in addressbook/tests/ebook/Makefile.am:

+test_dir_base = "/tmp/ebook-test-yadda/"
+TESTS_ENVIRONMENT = \
+   XDG_DATA_HOME=${test_dir_base}

However, the necessary value for XX can only be known after the test
has started, right?



-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] "make check" failing in the e-d-s gnome-2-32

2011-06-07 Thread Matthew Barnes
On Tue, 2011-06-07 at 09:08 +0200, Murray Cumming wrote:
> In the gnome-2-32 branch, several "make check" tests fail intermittently
> for me, as seen below. I'm running them in jhbuild.
> 
> This seems to be fixed in the gnome-3-0 branch and in the master branch.
> Does anyone know what commit fixed it, so I could backport it?

They were "fixed" by disabling quite a few of those tests.

In Evolution 2.32, in order to facilitate the move to XDG base dirs, I
changed the URI format for local address book and calendar sources from:

file:/absolute/path/to/storage/${ESOURCE_UID}

to simply:

local:${ESOURCE_UID}

(where ESOURCE_UID is the unique ID string of the ESource object)

This new format obscures the local storage path being used and lets the
file backend decide the storage path, which made migrating the data out
of ~/.evolution much easier, but made it harder to write tests because
now you can't give it a custom storage location through the URI string.

In other words, URIs like "local:/tmp/ebook-test-MN8AWV/" are invalid
because there is no ESource UID named "/tmp/ebook-test-MN8AWV/", which
is why the tests are failing.

Unfortunately I never went back and fixed the tests, but instead just
silenced them since by that point I had already started on a rewrite of
the ESource API which eliminates these URI strings entirely.  So the
tests in 3.x are still broken.  I was going to repair the tests after
the new API is completed.

In order to fix the tests properly under the current API, the test
harness would need to override the XDG_DATA_HOME environment variable to
point to some directory in /tmp/ebook-test-XX before running the
tests.  The file backend would then fill in the rest of the directory
structure using XDG_DATA_HOME as the base:

/tmp/ebook-test-XX/evolution/addressbook/${ESOURCE_UID}


Matthew Barnes

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


[Evolution-hackers] "make check" failing in the e-d-s gnome-2-32 branch

2011-06-07 Thread Murray Cumming
In the gnome-2-32 branch, several "make check" tests fail intermittently
for me, as seen below. I'm running them in jhbuild.

This seems to be fixed in the gnome-3-0 branch and in the master branch.
Does anyone know what commit fixed it, so I could backport it?


make[4]: Entering directory
`/home/murrayc/checkouts/gnome30/evolution-data-server-gnome-2-32/addressbook/tests/ebook'

** (process:12785): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-MAKFWV/': Cannot open book: db error 0x2 (No such
file or directory)
FAIL: test-ebook-remove
PASS: test-ebook-get-required-fields
PASS: test-ebook-get-static-capabilities
PASS: test-ebook-get-supported-fields
PASS: test-ebook-get-supported-auth-methods

** (process:13794): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-HRJLWV/': Cannot open book: db error 0x2 (No such
file or directory)
FAIL: test-ebook-add-contact
PASS: test-ebook-get-contact
PASS: test-ebook-get-book-view
PASS: test-ebook-commit-contact
PASS: test-ebook-remove-contact
PASS: test-ebook-remove-contact-by-id

** (process:14092): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-QBYFWV/': Cannot open book: db error 0x2 (No such
file or directory)
FAIL: test-ebook-remove-contacts

** (process:14165): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-HJ17VV/': Cannot open book: db error 0x2 (No such
file or directory)
FAIL: test-ebook-stress-factory--serial

** (process:14211): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-MN8AWV/': Cannot open book:
e_book_backend_file_maybe_upgrade_db failed
FAIL: test-ebook-stress-factory--fifo

** (process:14281): WARNING **: failed to open addressbook:
`local:/tmp/ebook-test-TOBQWV/': Cannot open book: db error 0x2 (No such
file or directory)
FAIL: test-ebook-stress-factory--single-book
==
6 of 15 tests failed
Please report to
http://bugzilla.gnome.org/enter_bug.cgi?product=Evolution-Data-Server
==
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory
`/home/murrayc/checkouts/gnome30/evolution-data-server-gnome-2-32/addressbook/tests/ebook'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
`/home/murrayc/checkouts/gnome30/evolution-data-server-gnome-2-32/addressbook/tests/ebook'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
`/home/murrayc/checkouts/gnome30/evolution-data-server-gnome-2-32/addressbook/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory
`/home/murrayc/checkouts/gnome30/evolution-data-server-gnome-2-32/addressbook'
make: *** [check-recursive] Error 1
[murrayc@murrayc-desktop evolution-data-server-gnome-2-32
(gnome-2-32)]$ 


-- 
murr...@murrayc.com
www.murrayc.com
www.openismus.com

___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers