Commit 8cb68ecb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move in export folder

parent 7f957546
......@@ -63,8 +63,8 @@ void ExportAddressbookJobInterfaceTest::exportAddressBookConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -84,7 +84,7 @@ void ExportAddressbookJobInterfaceTest::exportAddressBookConfigTest1()
delete archiveStorage;
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......
......@@ -46,8 +46,8 @@ void ExportAkregatorJobInterfaceTest::exportAkregatorConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -68,7 +68,7 @@ void ExportAkregatorJobInterfaceTest::exportAkregatorConfigTest1()
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......
......@@ -51,8 +51,8 @@ void ExportAlarmJobInterfaceTest::exportAlarmConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -73,7 +73,7 @@ void ExportAlarmJobInterfaceTest::exportAlarmConfigTest1()
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......
......@@ -51,8 +51,8 @@ void ExportCalendarsJobInterfaceTest::exportCalendarConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -73,7 +73,7 @@ void ExportCalendarsJobInterfaceTest::exportCalendarConfigTest1()
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......
......@@ -74,8 +74,8 @@ void ExportMailJobInterfaceTest::exportMailConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -96,6 +96,6 @@ void ExportMailJobInterfaceTest::exportMailConfigTest1()
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......@@ -57,8 +57,8 @@ void ExportNotesJobInterfaceTest::exportNoteConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/test1/config");
qputenv("XDG_DATA_HOME", PIMDATAEXPORTER_DIR "/export/test1/share");
qputenv("XDG_CONFIG_HOME", PIMDATAEXPORTER_DIR "/export/test1/config");
//TODO fix file name.
const QString temporaryFile = QStringLiteral("/tmp/foo.zip");
......@@ -79,7 +79,7 @@ void ExportNotesJobInterfaceTest::exportNoteConfigTest1()
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(temporaryFile);
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/test1/list.txt"));
compareExportFile.setListFilePath(QStringLiteral(PIMDATAEXPORTER_DIR "/export/test1/list.txt"));
compareExportFile.compareFiles();
}
......
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