[Fwd: [support] New feature in QMTest]

Stefan Seefeld stefan at codesourcery.com
Wed Aug 22 14:24:37 UTC 2007


Kristoffer,

sorry for getting back to you about this feature request this late.

I think the extension you propose is a great idea. Being able to
'mount' databases not located directly in a subdirectory seems
very convenient.

However, there are some minor things that need to be considered:

* Each mounted database needs to be referred to by an id that
  has to obey some constraints. In general, using the file system path
  leading to the database's location may not work.
  But using a dictionary instead of a list should work.

* I don't see any reason to modify anything but the MountDatabase
  to add this feature. In particular, the Database base class
  shouldn't be affected.

* For simplicity's sake, I'd suggest to drop the 'type' parameter.
  I imagine this simple rule:
  - if a dictionary of sub databases is present, only that is used
  - if none is present, the local subdirectories are scanned.
  - if you really want both, add entries for the local subdirectories
    into the dictionary

Does this make sense to you ?

Implementation detail: we don't yet have a way to pass a dictionary
on the command line, so setting up a mount database the way you suggest
wouldn't work via 'qmtest create_db'. Until this is implemented, you
would have to modify the QMTest/configuration file directly.

Thanks,
		Stefan


-- 
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718



More information about the qmtest mailing list