[qmtest] List test ids at command line?

Mark Mitchell mark at codesourcery.com
Mon Feb 23 23:40:07 UTC 2004


Andrew Funk wrote:

> Hi,
> 
> Is there a way to list all the test ids in a database from the qmtest
> command line interface?  I realize this would essentially be a listing
> of the directory tree, but for my application (generating tests at
> runtime) it would be a helpful feature.  I think it will be simple for
> me to implement but I thought I should check first in case it is already
> in there.

No, there's no way to do that.

Yes, that could be useful, but it would be much nicer if it would work 
as follows:

(1) Accept a --kind parameter that allows you to say what kind of 
extensions you want displayed (tests, suites, resources, etc.).  If no 
--kind parameter is displayed, show everything.

(2) Accept a series of optional arguments (e.g, "test1 
suite1.subsuite2") and show information only for those entities.  In 
other words, operate like "ls -R" with no arguments, and like "ls -R foo 
bar" for arguments "foo" and "bar".

You could call the new command "qmtest list".

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com



More information about the qmtest mailing list