Commit 72edb5d5 authored by Laurent Montel's avatar Laurent Montel 😁

Fix create generated files in binary src

parent 397f9b53
......@@ -2,6 +2,7 @@ include_directories(${libksieve_SOURCE_DIR}
${libksieve_SOURCE_DIR}/src/ksieveui/
)
add_definitions( -DKSIEVEUI_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" )
add_definitions( -DKSIEVEUI_BINARY_DATA_DIR="${CMAKE_CURRENT_BINARY_DIR}/data" )
ecm_qt_declare_logging_category(ksieveui_sieveeditor_autocreatescripts_LIB_SRCS HEADER
libksieve_debug.h IDENTIFIER LIBKSIEVE_LOG CATEGORY_NAME org.kde.pim.libksieve)
......
......@@ -62,7 +62,8 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts()
w.setSieveCapabilities(capabilities);
const QString originalFile = QLatin1String(KSIEVEUI_DATA_DIR) + QLatin1Char('/') + input + QStringLiteral(".siv");
const QString refFile = QLatin1String(KSIEVEUI_DATA_DIR) + QLatin1Char('/') + input + QStringLiteral("-ref.siv");
const QString generatedFile = QLatin1String(KSIEVEUI_DATA_DIR) + QLatin1Char('/') + input + QStringLiteral("-generated.siv");
const QString generatedFile = QLatin1String(KSIEVEUI_BINARY_DATA_DIR) + QLatin1Char('/') + input + QStringLiteral("-generated.siv");
QDir().mkpath(QLatin1String(KSIEVEUI_BINARY_DATA_DIR));
QString script = readSieveFile(originalFile);
//First parsing
bool result = false;
......
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