| 171 | } |
| 172 | |
| 173 | void TestQMakeFile::libTarget() |
| 174 | { |
| 175 | QFETCH(QString, target); |
| 176 | QFETCH(QString, resolved); |
| 177 | |
| 178 | QTemporaryFile tmpfile; |
| 179 | tmpfile.open(); |
| 180 | QTextStream stream(&tmpfile); |
| 181 | stream << "TARGET = " << target << "\nTEMPLATE = lib\n"; |
| 182 | stream.flush(); |
| 183 | tmpfile.close(); |
| 184 | |
| 185 | QMakeProjectFile file(tmpfile.fileName()); |
| 186 | |
| 187 | const auto qmvars = setDefaultMKSpec(file); |
| 188 | if (qmvars.isEmpty()) { |
| 189 | QSKIP("Problem querying QMake, skipping test function"); |
| 190 | } |
| 191 | |
| 192 | QVERIFY(file.read()); |
| 193 | |
| 194 | QCOMPARE(file.targets(), QStringList() << resolved); |
| 195 | } |
| 196 | |
| 197 | void TestQMakeFile::libTarget_data() |
| 198 | { |
nothing calls this directly
no test coverage detected