Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
6599b89e
Commit
6599b89e
authored
Dec 17, 2020
by
Laurent Montel
😁
Browse files
Generate files in builddir directly
parent
940e6451
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/saverulesjobtest.cpp
View file @
6599b89e
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment