Changeset View
Changeset View
Standalone View
Standalone View
autotests/kerfuffle/addtoarchivetest.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
62 | QTest::newRow("compress here (as TAR) - dir with files") | 62 | QTest::newRow("compress here (as TAR) - dir with files") | ||
63 | << QStringLiteral("tar.gz") | 63 | << QStringLiteral("tar.gz") | ||
64 | << Archive::Unencrypted | 64 | << Archive::Unencrypted | ||
65 | << QStringList {QFINDTESTDATA("data/testdir")} | 65 | << QStringList {QFINDTESTDATA("data/testdir")} | ||
66 | << QStringLiteral("testdir.tar.gz") | 66 | << QStringLiteral("testdir.tar.gz") | ||
67 | << 2ULL | 67 | << 2ULL | ||
68 | << 1ULL; | 68 | << 1ULL; | ||
69 | 69 | | |||
70 | QTest::newRow("compress here (as TAR) - dir with subdirs") | 70 | QTest::newRow("compress here (as TAR) - dir with subdirs") | ||
elvisangelaccio: This file has only empty lines as changes. | |||||
71 | << QStringLiteral("tar.gz") | 71 | << QStringLiteral("tar.gz") | ||
72 | << Archive::Unencrypted | 72 | << Archive::Unencrypted | ||
73 | << QStringList {QFINDTESTDATA("data/testdirwithsubdirs")} | 73 | << QStringList {QFINDTESTDATA("data/testdirwithsubdirs")} | ||
74 | << QStringLiteral("testdirwithsubdirs.tar.gz") | 74 | << QStringLiteral("testdirwithsubdirs.tar.gz") | ||
75 | << 4ULL | 75 | << 4ULL | ||
76 | << 4ULL; | 76 | << 4ULL; | ||
77 | 77 | | |||
78 | QTest::newRow("compress here (as TAR) - dir with empty subdir") | 78 | QTest::newRow("compress here (as TAR) - dir with empty subdir") | ||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 146 | QTest::newRow("compress here (as ZIP) - file + folder") | |||
148 | << Archive::Unencrypted | 148 | << Archive::Unencrypted | ||
149 | << QStringList { | 149 | << QStringList { | ||
150 | QFINDTESTDATA("data/testdir"), | 150 | QFINDTESTDATA("data/testdir"), | ||
151 | QFINDTESTDATA("data/testfile.txt") | 151 | QFINDTESTDATA("data/testfile.txt") | ||
152 | } | 152 | } | ||
153 | << QStringLiteral("data.zip") | 153 | << QStringLiteral("data.zip") | ||
154 | << 3ULL | 154 | << 3ULL | ||
155 | << 1ULL; | 155 | << 1ULL; | ||
156 | | ||||
157 | QTest::newRow("compress here (as TAR) - dir with special name (see #365798)") | 156 | QTest::newRow("compress here (as TAR) - dir with special name (see #365798)") | ||
158 | << QStringLiteral("tar.gz") | 157 | << QStringLiteral("tar.gz") | ||
159 | << Archive::Unencrypted | 158 | << Archive::Unencrypted | ||
160 | << QStringList {QFINDTESTDATA("data/test%dir")} | 159 | << QStringList {QFINDTESTDATA("data/test%dir")} | ||
161 | << QStringLiteral("test%dir.tar.gz") | 160 | << QStringLiteral("test%dir.tar.gz") | ||
162 | << 2ULL | 161 | << 2ULL | ||
163 | << 1ULL; | 162 | << 1ULL; | ||
163 | | ||||
164 | } else { | 164 | } else { | ||
165 | qDebug() << "7z/zip executable not found in path. Skipping compress-here-(ZIP) tests."; | 165 | qDebug() << "7z/zip executable not found in path. Skipping compress-here-(ZIP) tests."; | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | if (!PluginManager().preferredWritePluginsFor(QMimeDatabase().mimeTypeForName(QStringLiteral("application/vnd.rar"))).isEmpty()) { | 168 | if (!PluginManager().preferredWritePluginsFor(QMimeDatabase().mimeTypeForName(QStringLiteral("application/vnd.rar"))).isEmpty()) { | ||
169 | QTest::newRow("compress here (as RAR) - dir with files") | 169 | QTest::newRow("compress here (as RAR) - dir with files") | ||
170 | << QStringLiteral("rar") | 170 | << QStringLiteral("rar") | ||
171 | << Archive::Unencrypted | 171 | << Archive::Unencrypted | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |
This file has only empty lines as changes.