CQtDeployer/tests/units/linux/allowemptypackagestest.cpp
EndrII 5735fea973
All checks were successful
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/DocsGenerator Build finished.
buildbot/WindowsCMakeBuilder Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
fix tests
2024-03-06 10:13:37 +01:00

37 lines
994 B
C++

//#
//# Copyright (C) 2020-2024 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 "allowemptypackagestest.h"
#include <configparser.h>
#include <dependenciesscanner.h>
#include <filemanager.h>
#include <packing.h>
#include <pluginsparser.h>
void AllowEmptyPackagesTest::test() {
TestUtils utils;
#ifdef Q_OS_UNIX
QString bin = TestBinDir + "TestOnlyC";
#else
QString bin = TestBinDir + "TestOnlyC.exe";
#endif
runTestParams({"-bin", bin, "force-clear",
"-prefix", "package;prefix"}, nullptr, false, false,
exitCodes::PrepareError);
runTestParams({"-bin", bin, "force-clear",
"-prefix", "package;prefix",
"allowEmptyPackages"});
}
QString AllowEmptyPackagesTest::testName() const {
return "AllowEmptyPackagesTest";
}