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-XXXXXX 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-XXXXXX/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 XXXXXX 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

Reply via email to