Skip to content

HOWTO:RunThePythonTestSuite

Etienne Petrel edited this page Jan 5, 2023 · 5 revisions

Running the Python test suite requires python 3.0+.

After configuring wiredtiger using --enable-python and building, these steps will run the entire test suite:

$ cd <build_dir>
$ env LD_LIBRARY_PATH=.libs python ../test/suite/run.py

This may take a half an hour on a laptop. On OS/X, you will need to set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH.

By default, 'verboseness' is set at 1, giving a single '.' of output per test. To get more verbose output, add -v 2, for example:

$ env LD_LIBRARY_PATH=.libs python ../test/suite/run.py -v 2

Other options are available, use --help.

The test suite can also be run in parallel via the --parallel option. For example:

$ cd <build_dir>
$ env LD_LIBRARY_PATH=.libs python ../test/suite/run.py -v 2 --parallel 4

The --parallel option (which can also be used as -j) indicates the number of processes used. Change the parallel argument as appropriate for your system. The best number may be best determined experimentally.