Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/testing/ctestutils.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 54 | foreach (const Test& test, testSuites) { | |||
---|---|---|---|---|---|
58 | } else { | 58 | } else { | ||
59 | const auto target = targetByName(targets, test.executable); | 59 | const auto target = targetByName(targets, test.executable); | ||
60 | if (target.artifacts.isEmpty()) { | 60 | if (target.artifacts.isEmpty()) { | ||
61 | continue; | 61 | continue; | ||
62 | } | 62 | } | ||
63 | executablePath = target.artifacts.constFirst(); | 63 | executablePath = target.artifacts.constFirst(); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | const bool willFail = test.properties.value(QStringLiteral("WILL_FAIL"), QStringLiteral("FALSE")) == QLatin1String("TRUE"); | 66 | CTestSuite* suite = new CTestSuite(test.name, executablePath, {}, project, test.arguments, test.properties); | ||
67 | CTestSuite* suite = new CTestSuite(test.name, executablePath, {}, project, test.arguments, willFail); | | |||
68 | ICore::self()->runController()->registerJob(new CTestFindJob(suite)); | 67 | ICore::self()->runController()->registerJob(new CTestFindJob(suite)); | ||
69 | } | 68 | } | ||
70 | } | 69 | } |