SCons / test / README


This directory contains our end-to-end SCons tests.

They are all meant to be run essentially standalone, with the exception
of the module and the other modules imported by the various
tests.  These modules are in the QMTest/ subdirectory, and PYTHONPATH
needs to be set up correctly so that the test scripts can find them,
and so that the SCons script itself can find the build engine modules.

There is a wrapper script,, that takes care of this for you,
so the canonical invocation of a test is:

	python test/

There is also a " -a" option that will search the tree for
all tests, and execute them.

Some of these tests have code for features that are not yet supported.

	commented out with a "#XXX" at the beginning of the line;

	short-circuited entirely by having the test pass via an
	early call to test.pass_test(), which has a "#XXX" comment
	at the end of the line

If you're trying to implement one of these features, DO NOT BLINDLY
that have gone undiscovered due to the fact that the code testing the
future feature couldn't be run yet!

We're not going to be dogmatic about it, but so that there's some
semblance of uniformity, here are the naming conventions for tests:

    --	All tests end with a .py suffix.

    --	General form:	test of specified feature; try to
				keep this description reasonably
				short	test of specified feature using
				option x

    --	Command line option tests take the form:	lower-case single-letter option	upper-case single-letter option
				(extra hyphen so the file names will
				be unique on case-insensitive systems)	long option; abbreviate the long
				option name to a few characters
Tip: Use camelCasing e.g. ProjME to search for