Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/testing/ctestutils.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 42 | { | |||
---|---|---|---|---|---|
49 | return {}; | 49 | return {}; | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | void CTestUtils::createTestSuites(const QVector<Test>& testSuites, const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, KDevelop::IProject* project) | 52 | void CTestUtils::createTestSuites(const QVector<Test>& testSuites, const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, KDevelop::IProject* project) | ||
53 | { | 53 | { | ||
54 | foreach (const Test& test, testSuites) { | 54 | foreach (const Test& test, testSuites) { | ||
55 | const auto target = targetByName(targets, test.executable); | 55 | const auto target = targetByName(targets, test.executable); | ||
56 | 56 | | |||
57 | const bool willFail = test.properties.value(QStringLiteral("WILL_FAIL"), QStringLiteral("FALSE")) == QLatin1String("TRUE"); | 57 | CTestSuite* suite = new CTestSuite(test.name, target.artifacts.constFirst(), {}, project, test.arguments, test.properties); | ||
58 | CTestSuite* suite = new CTestSuite(test.name, target.artifacts.constFirst(), {}, project, test.arguments, willFail); | | |||
59 | ICore::self()->runController()->registerJob(new CTestFindJob(suite)); | 58 | ICore::self()->runController()->registerJob(new CTestFindJob(suite)); | ||
60 | } | 59 | } | ||
61 | } | 60 | } |