new 'check' command
Stefan Seefeld
seefeld at sympatico.ca
Thu Sep 18 01:01:44 UTC 2003
hi there,
this patch allows to run the self-tests (as priviously done
with 'make check'). It operates with the executable and modules
inside the source tree. To be able to do this I had to make two
(temporary, I hope) changes:
* define QM_BUILD (this is detected by the presence of the qm.config
module, which, when found, means QM_BUILD = 0
* as the qmtest.py executable is right now in an unusual place,
I can't use the same procedure to deduce QM_HOME from it.
As a temporary workaround (until the source tree layout is
cleaned up) I set QM_HOME from within the qm/__init__.py
file only if it is not already defined. This means that in
order to run the 'check' command right now you have to define
QM_HOME manually.
Please see 'python setup.py check --help' for the options, all
test classes can be selected individually, 'all' is the default.
Please let me know what features are missing from the new build
system before you are ready for the file layout rearrangement.
Once things are made more isomorphic to an installed tree (such
as all data moved out of the 'qm' subtree into 'share/qm/', the
'qmtest.py' executable to 'bin/qmtest', etc.) I can do some cleanup,
such as remove the code using QM_BUILD and QM_HOME.
Regards,
Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check.py
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030917/c8191c13/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030917/c8191c13/attachment-0001.ksh>
More information about the qmtest
mailing list