mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-29 03:04:34 +00:00
32 lines
781 B
C++
32 lines
781 B
C++
|
//#
|
||
|
//# Copyright (C) 2020-2022 QuasarApp.
|
||
|
//# Distributed under the GPLv3 software license, see the accompanying
|
||
|
//# Everyone is permitted to copy and distribute verbatim copies
|
||
|
//# of this license document, but changing it is not allowed.
|
||
|
//#
|
||
|
|
||
|
|
||
|
#include "ziparrchivetest.h"
|
||
|
#include <configparser.h>
|
||
|
#include <dependenciesscanner.h>
|
||
|
#include <filemanager.h>
|
||
|
#include <packing.h>
|
||
|
#include <pluginsparser.h>
|
||
|
|
||
|
|
||
|
void ZIPArchiveTest::test() {
|
||
|
TestUtils utils;
|
||
|
|
||
|
ZipCompresser zip;
|
||
|
auto befor = utils.getTree("./test");
|
||
|
|
||
|
QVERIFY(zip.compress("./test", "./arr.zip"));
|
||
|
QVERIFY(QDir("./test").removeRecursively());
|
||
|
QVERIFY(zip.extract("./arr.zip", "./test"));
|
||
|
|
||
|
auto after = utils.getTree("./test");
|
||
|
|
||
|
QVERIFY(utils.compareTree(befor, after).size() == 0);
|
||
|
|
||
|
}
|