|
__init__(self,
env,
custom_tests={ } ,
conf_dir=' $CONFIGUREDIR ' ,
log_file=' $CONFIGURELOG ' ,
config_h=None,
_depth=0)
Constructor. Pass additional tests in the custom_tests-dictinary,
e.g. custom_tests={'CheckPrivate':MyPrivateTest}, where MyPrivateTest
defines a custom test.
Note also the conf_dir and log_file arguments (you may want to
build tests in the VariantDir, not in the SourceDir) |
source code
|
|
|
Finish(self)
Call this method after finished with your tests:
env = sconf.Finish() |
source code
|
|
|
Define(self,
name,
value=None,
comment=None)
Define a pre processor symbol name, with the optional given value in the
current config header. |
source code
|
|
|
BuildNodes(self,
nodes)
Tries to build the given nodes immediately. Returns 1 on success,
0 on error. |
source code
|
|
|
|
|
TryBuild(self,
builder,
text=None,
extension='
' )
Low level TryBuild implementation. Normally you don't need to
call that - you can use TryCompile / TryLink / TryRun instead |
source code
|
|
|
TryAction(self,
action,
text=None,
extension='
' )
Tries to execute the given action with optional source file
contents <text> and optional source file extension <extension>,
Returns the status (0 : failed, 1 : ok) and the contents of the
output file. |
source code
|
|
|
TryCompile(self,
text,
extension)
Compiles the program given in text to an env.Object, using extension
as file extension (e.g. '.c'). Returns 1, if compilation was
successful, 0 otherwise. The target is saved in self.lastTarget (for
further processing). |
source code
|
|
|
TryLink(self,
text,
extension)
Compiles the program given in text to an executable env.Program,
using extension as file extension (e.g. '.c'). Returns 1, if
compilation was successful, 0 otherwise. The target is saved in
self.lastTarget (for further processing). |
source code
|
|
|
TryRun(self,
text,
extension)
Compiles and runs the program given in text, using extension
as file extension (e.g. '.c'). Returns (1, outputStr) on success,
(0, '') otherwise. The target (a file containing the program's stdout)
is saved in self.lastTarget (for further processing). |
source code
|
|
|
AddTest(self,
test_name,
test_instance)
Adds test_class to this SConf instance. It can be called with
self.test_name(...) |
source code
|
|
|
AddTests(self,
tests)
Adds all the tests given in the tests dictionary to this SConf
instance |
source code
|
|
|
|
|
_startup(self)
Private method. Set up logstream, and set the environment
variables necessary for a piped build |
source code
|
|
|
_shutdown(self)
Private method. Reset to non-piped spawn |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|