[qmtest] test names and suite files

Mark Mitchell mark at codesourcery.com
Tue Nov 25 17:36:58 UTC 2003


> I can successfully run  tests from ~ using
> 
> 	cd ~
> 	qmtest run test_suite
> 
> or
> 	cd ~
> 	qmtest run tests/test_suite
> 
> but when I go into the tests directory, I can't run the test suite 
> because the suite file contains test id paths relative to ~. So this:
> 
> 	cd ~/tests
> 	qmtest run test_suite
> 
> doesn't work.

You're really not supposed to run QMTest with a database other than the
top-level of your database.  You can set QMTEST_DB_PATH to the database
location ("$HOME" in your example) so that you run "qmtest" from
anywhere -- but you should always run "tests.test_suite" that way -- it
doesn't generally work to go into "tests" and then ry to run
"test_suite".

(There's something called a "MountDatabase" for combining multiple test
databases into something bigger, and it does spport the kind of thing
you're doing -- but I don't think that's what you want here.)

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




More information about the qmtest mailing list