MCPcopy Create free account
hub / github.com/Gecode/gecode / run_tests_parallel

Function run_tests_parallel

test/test.cpp:443–455  ·  view source on GitHub ↗

Run all the tests with the supplied options i parallel.

Source from the content-addressed store, hash-verified

441
442 /// Run all the tests with the supplied options i parallel.
443 int run_tests_parallel(const std::vector<Base*>& tests, const Options& options) {
444 using namespace Gecode::Support;
445 RandomGenerator seed_sequence(options.seed);
446
447 TestExecutionControl tec(tests, options, opt.threads);
448
449 for (unsigned int i = 0; i < opt.threads; ++i) {
450 Thread::run(new TestExecutor(tec, seed_sequence.next()));
451 }
452 tec.await_test_runners_completed();
453
454 return tec.get_result();
455 }
456}
457
458

Callers 1

mainFunction · 0.85

Calls 3

get_resultMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected