Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/tests/cmakeprojectvisitortest.cpp
Show First 20 Lines • Show All 514 Lines • ▼ Show 20 Line(s) | 514 | QTest::newRow("library alias") << | |||
---|---|---|---|---|---|
515 | "add_library(mylib file.cpp)\n" | 515 | "add_library(mylib file.cpp)\n" | ||
516 | "add_library(My::Lib ALIAS mylib)\n" | 516 | "add_library(My::Lib ALIAS mylib)\n" | ||
517 | "set_target_properties(mylib PROPERTIES fu hello)\n" | 517 | "set_target_properties(mylib PROPERTIES fu hello)\n" | ||
518 | "get_target_property(result My::Lib fu)\n" | 518 | "get_target_property(result My::Lib fu)\n" | ||
519 | << cacheValues << results; | 519 | << cacheValues << results; | ||
520 | results.clear(); | 520 | results.clear(); | ||
521 | results << StringPair("result", ""); | 521 | results << StringPair("result", ""); | ||
522 | QTest::newRow("empty set with scope") << | 522 | QTest::newRow("empty set with scope") << | ||
523 | "set(result ${nonexistant} PARENT_SCOPE)\n" | 523 | "set(result ${nonexistent} PARENT_SCOPE)\n" | ||
524 | << cacheValues << results; | 524 | << cacheValues << results; | ||
525 | } | 525 | } | ||
526 | 526 | | |||
527 | void CMakeProjectVisitorTest::testRun() | 527 | void CMakeProjectVisitorTest::testRun() | ||
528 | { | 528 | { | ||
529 | QFETCH(QString, input); | 529 | QFETCH(QString, input); | ||
530 | QFETCH(QList<StringPair>, cache); | 530 | QFETCH(QList<StringPair>, cache); | ||
531 | QFETCH(QList<StringPair>, results); | 531 | QFETCH(QList<StringPair>, results); | ||
▲ Show 20 Lines • Show All 605 Lines • Show Last 20 Lines |