Re: [Tracker] Tracker testing environment

On Mon, Mar 12, 2012 at 5:35 PM, Martyn Russell <martyn lanedo com> wrote:
On 12/03/12 16:59, Ivan Frade wrote:


 I usually work installing on /usr but your sandbox script is a great

 A couple of comments on the script:

* I think it should also set the TRACKER_ONTOLOGIES_DIR variable
* It should also report if the test directory exists (to know if
tracker is writing a new DB or reusing some old version)

This is a really good point. Checking the man pages for env vars you can use
for each binary (like tracker-store) would give you some idea of relocatable

Thanks for the input!

I've implemented some of these fixes and ideas:
* parallel instances of tracker-sandbox will share a dbus instance,
rather than each having their own
* dconf uses the trackertest profile when running as the same user,
and when running as a dummy user we spoof an XDG_RUNTIME_DIR so that
it can run
seems to me that since XDG_DATA_DIRS is set, we shouldn't need to do
the specific TRACKER_ variables as well ... but it does no harm)
* note when /tmp/tracker-test already exists

Remaining issues
* need to test on Ubuntu (not sure if XDG_RUNTIME_DIR is implemented there yet)
* exiting the first instance kills the session even if other instances
are still active, but implementing some sort of atomic refcounting in
shell is not an exercise i'm about to do for fun :)

New version at:

I'll write a bit on the wiki about it later this week, and commit it
to git if you think that's ok (into utils/ I guess?)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]