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?
--
[email protected]
www.murrayc.com
www.openismus.com
_______________________________________________
evolution-hackers mailing list
[email protected]
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers