Skip to content

Use parallel jobs in ctest #664

@boxerab

Description

@boxerab

Running ctest with the option -j allows it to run tests in parallel. For example,

ctest -j 8

will run with 8 threads. On my quad core machine, this setting cut the time to run ctest in half.
As the test suite is growing ( a good thing), it is very helpful to shorten the test cycle.

So, it would be great to put this setting in the cmake files, somehow.

I tried setting

set(CTEST_PARALLEL_LEVEL 8)

in CTestCustom.cmake.in

but this didn't change the command line options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions