Commit 6599b89e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Generate files in builddir directly

parent 940e6451
......@@ -30,7 +30,7 @@ QTEST_GUILESS_MAIN(SaveRulesJobTest)
void compareFile(const QString &name)
{
const QString refFile = QLatin1String(KDEBUGSETTINGS_DATA_DIR) + QLatin1Char('/') + name + QStringLiteral(".ref");
const QString generatedFile = QLatin1String(KDEBUGSETTINGS_DATA_DIR) + QLatin1Char('/') + name + QStringLiteral("-generated.ref");
const QString generatedFile = QLatin1String(KDEBUGSETTINGS_BINARY_DATA_DIR) + QLatin1Char('/') + name + QStringLiteral("-generated.ref");
// compare to reference file
QStringList args = QStringList()
......@@ -71,7 +71,9 @@ void SaveRulesJobTest::shouldSaveLoadRules()
const LoggingCategory::List qtKdeCategories = job.qtKdeCategories();
SaveRulesJob saveJob;
saveJob.setFileName(QLatin1String(KDEBUGSETTINGS_DATA_DIR) + QLatin1Char('/') + filename + QStringLiteral("-generated.ref"));
QDir().mkpath(QLatin1String(KDEBUGSETTINGS_BINARY_DATA_DIR));
saveJob.setFileName(QLatin1String(KDEBUGSETTINGS_BINARY_DATA_DIR) + QLatin1Char('/') + filename + QStringLiteral("-generated.ref"));
qDebug() << " save " << saveJob.fileName();
saveJob.setListCustom(customCategories);
saveJob.setListKde(qtKdeCategories);
QVERIFY(saveJob.start());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment