X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FBoostUnitTests.py;h=e6aed7af765857d2063e03625fca1bc36972217f;hb=47be4c5261340d3e2ea208bb0b2d96fa256d829a;hp=7d250ad3ac94c994e5901afcdaeb1d5afea9a792;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/senfscons/BoostUnitTests.py b/senfscons/BoostUnitTests.py index 7d250ad..e6aed7a 100644 --- a/senfscons/BoostUnitTests.py +++ b/senfscons/BoostUnitTests.py @@ -1,3 +1,26 @@ +## \file +# \brief BoostUnitTests build + +## \package senfscons.BoostUnitTests +# \brief Builder utilizing the Boost.Test unit-test framework +# +# The BoostUnitTests builder will build a unit-test executable using +# the Boost.Test +# library. After building, the unit-test will be executed. +# +# This builder is used by the SENFSCons.Object() helper to build the +# unit test. +# +# \par Construction Envrionment Variables: +# +# +# +#
\c BOOSTTESTLIBName of the library to use, defaults to \c boost_unit_test_framework
\c BOOSTTESTARGSCommand line arguments of the test, defaults to --build_info=yes --log_level=test_suite
+# +# \todo This is not really a builder. This should be rewritten as one +# \ingroup builder + import SCons.Script.SConscript import SCons.Defaults import os.path @@ -28,7 +51,7 @@ def BoostUnitTests(env, target, source, test_source=None, LIBS = [], DEPENDS = [ def dispatcher(*arg,**kw): return BoostUnitTests(*arg,**kw) - + def generate(env): env['BOOSTTESTLIB'] = 'boost_unit_test_framework' env['BOOSTTESTARGS'] = [ '--build_info=yes', '--log_level=test_suite' ]