mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-26 17:54:32 +00:00
Merge branch 'v1.4' into v1.5
This commit is contained in:
commit
3af0e52539
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -19,3 +19,6 @@
|
||||
[submodule "zip"]
|
||||
path = zip
|
||||
url = https://github.com/QuasarApp/zip.git
|
||||
[submodule "UnitTests/backward-cpp"]
|
||||
path = UnitTests/backward-cpp
|
||||
url = https://github.com/QuasarApp/backward-cpp.git
|
||||
|
@ -56,6 +56,7 @@ SOURCES += \
|
||||
configparser.cpp \
|
||||
deploy.cpp \
|
||||
deploycore.cpp \
|
||||
elf_type.cpp \
|
||||
envirement.cpp \
|
||||
extra.cpp \
|
||||
extracter.cpp \
|
||||
@ -66,11 +67,10 @@ SOURCES += \
|
||||
packagecontrol.cpp \
|
||||
packing.cpp \
|
||||
pathutils.cpp \
|
||||
pe.cpp \
|
||||
igetlibinfo.cpp \
|
||||
dependenciesscanner.cpp \
|
||||
../qtTools/src/shared/winutils/elfreader.cpp \
|
||||
elf.cpp \
|
||||
pe_type.cpp \
|
||||
pluginsparser.cpp \
|
||||
Distributions/qif.cpp \
|
||||
qml.cpp \
|
||||
@ -92,6 +92,7 @@ HEADERS += \
|
||||
deploy.h \
|
||||
deploy_global.h \
|
||||
deploycore.h \
|
||||
elf_type.h \
|
||||
envirement.h \
|
||||
extra.h \
|
||||
extracter.h \
|
||||
@ -102,11 +103,10 @@ HEADERS += \
|
||||
packagecontrol.h \
|
||||
packing.h \
|
||||
pathutils.h \
|
||||
pe.h \
|
||||
igetlibinfo.h \
|
||||
dependenciesscanner.h \
|
||||
../qtTools/src/shared/winutils/elfreader.h \
|
||||
elf.h \
|
||||
pe_type.h \
|
||||
pluginsparser.h \
|
||||
Distributions/qif.h \
|
||||
qml.h \
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include <QMultiMap>
|
||||
#include <QStringList>
|
||||
#include "deploy_global.h"
|
||||
#include "pe.h"
|
||||
#include "elf.h"
|
||||
#include "pe_type.h"
|
||||
#include "elf_type.h"
|
||||
#include "libinfo.h"
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#include "elf.h"
|
||||
#include "elf_type.h"
|
||||
#include <cmath>
|
||||
#include <QFileInfo>
|
||||
#include <quasarapp.h>
|
@ -5,7 +5,7 @@
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "pe.h"
|
||||
#include "pe_type.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
@ -45,6 +45,7 @@ RESOURCES += \
|
||||
res.qrc
|
||||
|
||||
HEADERS += \
|
||||
backward-cpp/backward.hpp \
|
||||
libcreator.h \
|
||||
modules.h \
|
||||
modulesqt513.h \
|
||||
|
1
UnitTests/backward-cpp
Submodule
1
UnitTests/backward-cpp
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4715c7a2b4dec61dee310221f5df3768213a3a24
|
@ -29,23 +29,9 @@
|
||||
#include "modules.h"
|
||||
#include "qmlcreator.h"
|
||||
#include "testutils.h"
|
||||
|
||||
#include "backward-cpp/backward.hpp"
|
||||
// add necessary includes here
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <execinfo.h>
|
||||
|
||||
void handler(int sig) {
|
||||
void *array[10];
|
||||
size_t size;
|
||||
|
||||
// get void*'s for all entries on the stack
|
||||
size = backtrace(array, 10);
|
||||
|
||||
// print out all the frames to stderr
|
||||
fprintf(stderr, "Error: signal %d:\n", sig);
|
||||
backtrace_symbols_fd(array, size, STDERR_FILENO);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
const QString TestBinDir = TEST_BIN_DIR;
|
||||
@ -57,7 +43,7 @@ class deploytest : public QObject
|
||||
|
||||
private:
|
||||
QHash<QString, QSet<QString>> filesTree;
|
||||
|
||||
backward::SignalHandling bt;
|
||||
|
||||
bool runProcess(const QString& DistroPath,
|
||||
const QString& filename,
|
||||
@ -264,8 +250,7 @@ QSet<QString> deploytest::getFilesTree(const QStringList &keys) {
|
||||
}
|
||||
|
||||
deploytest::deploytest() {
|
||||
signal(SIGSEGV, handler); // install our handler
|
||||
signal(SIGABRT, handler); // install our handler
|
||||
QVERIFY(bt.loaded());
|
||||
|
||||
|
||||
TestUtils utils;
|
||||
|
Loading…
x
Reference in New Issue
Block a user