Commit 868bc931 authored by Ragnar Thomsen's avatar Ragnar Thomsen

Add test cases for RPM and AppImage

Test cases were added for testing extraction of selected entries.
parent 94d8567d
......@@ -537,13 +537,22 @@ void ArchiveTest::testExtraction_data()
<< optionsPreservePaths
<< 6;
archivePath = QFINDTESTDATA("data/hello-2.8-x86_64.AppImage");
archivePath = QFINDTESTDATA("data/hello-1.0-x86_64.AppImage");
QTest::newRow("extract all entries from an AppImage with path")
<< archivePath
<< QVariantList()
<< optionsPreservePaths
<< 7;
archivePath = QFINDTESTDATA("data/hello-1.0-x86_64.AppImage");
QTest::newRow("extract selected entries from an AppImage with path")
<< archivePath
<< QVariantList {
QVariant::fromValue(fileRootNodePair(QStringLiteral("./usr/bin/hello"), QString()))
}
<< optionsPreservePaths
<< 3;
archivePath = QFINDTESTDATA("data/archive-multivolume.7z.001");
QTest::newRow("extract all entries from a multivolume 7z archive with path")
<< archivePath
......@@ -558,6 +567,15 @@ void ArchiveTest::testExtraction_data()
<< optionsPreservePaths
<< 3;
archivePath = QFINDTESTDATA("data/firmware-pine64-20160329-6.1.aarch64.rpm");
QTest::newRow("extract selected entries from rpm with path")
<< archivePath
<< QVariantList {
QVariant::fromValue(fileRootNodePair(QStringLiteral("./boot/sunxi-spl.bin"), QString()))
}
<< optionsPreservePaths
<< 2;
archivePath = QFINDTESTDATA("data/firmware-pine64-20160329-6.1.aarch64.rpm");
QTest::newRow("#369535: broken drag-and-drop from rpm")
<< archivePath
......
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