Re: [Tracker] Tracker testing environment



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

Hi,

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

  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
paths.

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

Cool. You should be aware, using a new DBus session in a sandbox will also break apps if they use other DBus services (which is often the case), so be aware of that.

* 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

Also, there is a TRACKER_USE_CONFIG_FILES env var which you can use for the old school .cfg files in XDG ~/.config/tracker locations.

* set TRACKER_DB_ONTOLOGIES_DIR and TRACKER_LANGUAGE_STOPWORDS_DIR (it
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)

Oh that's new to me too.

* 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 :)

:D

New version at: http://afuera.me.uk/junk/tracker-sandbox

Nice.

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?)

Yea, utils/ make sense.

Thanks for the hard work here ;)

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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