mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
Made Python testing more verbose by default
Avoid using the Boost.Test library wherever possible. [SVN r24248]
This commit is contained in:
@@ -253,17 +253,16 @@ bjam -sTOOLS=<i><a href=
|
||||
</pre>
|
||||
</blockquote>
|
||||
This will update all of the Boost.Python v1 test and example targets. The
|
||||
tests are relatively quiet by default. To get more-verbose output, you
|
||||
tests are relatively verbose by default. To get less-verbose output, you
|
||||
might try
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
bjam -sTOOLS=<i><a href=
|
||||
"../../../more/getting_started.html#Tools">toolset</a></i> -sPYTHON_TEST_ARGS=-v test
|
||||
"../../../more/getting_started.html#Tools">toolset</a></i> -sPYTHON_TEST_ARGS= test
|
||||
</pre>
|
||||
</blockquote>
|
||||
which will print each test's Python code with the expected output as it
|
||||
passes.
|
||||
By default, <code>PYTHON_TEST_ARGS</code> is set to <code>-v</code>.
|
||||
|
||||
<h2><a name="building_ext">Building your Extension Module</a></h2>
|
||||
Though there are other approaches, the smoothest and most reliable way to
|
||||
|
||||
@@ -69,7 +69,7 @@ rule bpl-test ( name ? : files * : requirements * )
|
||||
}
|
||||
}
|
||||
|
||||
return [ boost-python-runtest $(name) : $(py) <pyd>$(modules) : $(requirements) ] ;
|
||||
return [ boost-python-runtest $(name) : $(py) <pyd>$(modules) : $(requirements) : : -v ] ;
|
||||
}
|
||||
|
||||
test-suite python
|
||||
@@ -188,13 +188,12 @@ bpl-test crossmod_exception
|
||||
|
||||
[ run upcast.cpp <lib>../../test/build/boost_test_exec_monitor <template>py-unit-test ]
|
||||
|
||||
[ run select_holder.cpp <lib>../../test/build/boost_test_exec_monitor <template>py-unit-test ]
|
||||
[ compile select_holder.cpp <template>py-unit-test ]
|
||||
|
||||
[ run select_from_python_test.cpp ../src/converter/type_id.cpp
|
||||
<lib>../../test/build/boost_test_exec_monitor <template>py-unit-test ]
|
||||
|
||||
[ run select_arg_to_python_test.cpp ../src/converter/type_id.cpp
|
||||
<lib>../../test/build/boost_test_exec_monitor <template>py-unit-test ]
|
||||
[ compile select_arg_to_python_test.cpp <template>py-unit-test ]
|
||||
|
||||
[ compile-fail ./raw_pyobject_fail1.cpp <template>py-unit-test ]
|
||||
[ compile-fail ./raw_pyobject_fail2.cpp <template>py-unit-test ]
|
||||
|
||||
Reference in New Issue
Block a user