Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/tests/test_cmakemanager.cpp
Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Line(s) | 261 | // QCOMPARE(defines.value("BLA", QStringLiteral("not found")), QStringLiteral("blub")); | |||
---|---|---|---|---|---|
272 | } | 272 | } | ||
273 | QVERIFY(foundInTarget); | 273 | QVERIFY(foundInTarget); | ||
274 | } | 274 | } | ||
275 | 275 | | |||
276 | void TestCMakeManager::testCustomTargetSources() | 276 | void TestCMakeManager::testCustomTargetSources() | ||
277 | { | 277 | { | ||
278 | IProject* project = loadProject("custom_target_sources"); | 278 | IProject* project = loadProject("custom_target_sources"); | ||
279 | 279 | | |||
280 | QEXPECT_FAIL("", "Will fix soon, hopefully", Abort); | | |||
281 | QList<ProjectTargetItem*> targets = project->buildSystemManager()->targets(project->projectItem()); | 280 | QList<ProjectTargetItem*> targets = project->buildSystemManager()->targets(project->projectItem()); | ||
282 | QVERIFY(targets.size() == 1); | 281 | QVERIFY(targets.size() == 1); | ||
283 | 282 | | |||
283 | QEXPECT_FAIL("", "Will fix soon, hopefully", Abort); | ||||
mwolff: famous last words :D | |||||
apol: Sh... at least we are testing a bit more than we used to... | |||||
284 | ProjectTargetItem *target = targets.first(); | 284 | ProjectTargetItem *target = targets.first(); | ||
285 | QCOMPARE(target->fileList().size(), 1); | 285 | QCOMPARE(target->fileList().size(), 1); | ||
286 | QCOMPARE(target->fileList().first()->baseName(), QStringLiteral("foo.cpp")); | 286 | QCOMPARE(target->fileList().first()->baseName(), QStringLiteral("foo.cpp")); | ||
287 | } | 287 | } | ||
288 | 288 | | |||
289 | void TestCMakeManager::testConditionsInSubdirectoryBasedOnRootVariables() | 289 | void TestCMakeManager::testConditionsInSubdirectoryBasedOnRootVariables() | ||
290 | { | 290 | { | ||
291 | IProject* project = loadProject("conditions_in_subdirectory_based_on_root_variables"); | 291 | IProject* project = loadProject("conditions_in_subdirectory_based_on_root_variables"); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
338 | 338 | | |||
339 | void TestCMakeManager::testParenthesesInTestArguments() | 339 | void TestCMakeManager::testParenthesesInTestArguments() | ||
340 | { | 340 | { | ||
341 | IProject* project = loadProject("parentheses_in_test_arguments"); | 341 | IProject* project = loadProject("parentheses_in_test_arguments"); | ||
342 | 342 | | |||
343 | Path sourceDir = project->path(); | 343 | Path sourceDir = project->path(); | ||
344 | Path buildDir(sourceDir, "build/"); | 344 | Path buildDir(sourceDir, "build/"); | ||
345 | 345 | | |||
346 | CMakeImportJob* job = new CMakeImportJob(project, this); | 346 | auto job = new CMakeImportJsonJob(project, this); | ||
347 | job->start(); | 347 | job->start(); | ||
348 | 348 | | |||
349 | } | 349 | } |
famous last words :D