Commit e4c56b81 authored by Eastern Li's avatar Eastern Li
Browse files

add a test for multiple files with same basename

parent c099273a
Pipeline #245259 passed with stage
in 3 minutes and 1 second
......@@ -75,6 +75,10 @@ void AddToArchiveTest::testCompressHere_data()
QTest::newRow("compress here (as TAR) - files with same prefix")
<< QStringLiteral("tar.gz") << Archive::Unencrypted << QStringList{QFINDTESTDATA("data/textfile1.txt"), QFINDTESTDATA("data/textfile2.txt")}
<< QStringLiteral("textfile.tar.gz") << 2ULL;
QTest::newRow("compress here (as TAR) - files with same base name")
<< QStringLiteral("tar.gz") << Archive::Unencrypted << QStringList{QFINDTESTDATA("data/testfile.txt"), QFINDTESTDATA("data/testfile.md")}
<< QStringLiteral("testfile.tar.gz") << 2ULL;
QTest::newRow("compress here (as TAR) - files with same prefix too short")
<< QStringLiteral("tar.gz") << Archive::Unencrypted << QStringList{QFINDTESTDATA("data/testfile.txt"), QFINDTESTDATA("data/textfile2.txt")}
......
Supports Markdown
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