Upload files for debugging if linuxdeployqt segfaults
This commit is contained in:
+18
-3
@@ -3,8 +3,8 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
source /opt/qt*/bin/qt*-env.sh
|
source /opt/qt*/bin/qt*-env.sh
|
||||||
/opt/qt*/bin/qmake linuxdeployqt.pro
|
/opt/qt*/bin/qmake CONFIG+=debug linuxdeployqt.pro
|
||||||
make -j2
|
make -j
|
||||||
|
|
||||||
mkdir -p linuxdeployqt.AppDir/usr/bin/
|
mkdir -p linuxdeployqt.AppDir/usr/bin/
|
||||||
cp /usr/local/bin/{appimagetool,mksquashfs,patchelf,zsyncmake} linuxdeployqt.AppDir/usr/bin/
|
cp /usr/local/bin/{appimagetool,mksquashfs,patchelf,zsyncmake} linuxdeployqt.AppDir/usr/bin/
|
||||||
@@ -24,4 +24,19 @@ do
|
|||||||
sleep 1;
|
sleep 1;
|
||||||
done
|
done
|
||||||
|
|
||||||
bash -e tests/tests.sh
|
# enable core dumps
|
||||||
|
echo "/tmp/coredump" | sudo tee /proc/sys/kernel/core_pattern
|
||||||
|
|
||||||
|
ulimit -c unlimited
|
||||||
|
ulimit -a -S
|
||||||
|
ulimit -a -H
|
||||||
|
|
||||||
|
bash -e tests/tests.sh || RESULT=$?
|
||||||
|
|
||||||
|
if [ $RESULT -ne 0 ]; then
|
||||||
|
echo "FAILURE: linuxdeployqt CRASHED -- uploading files for debugging to transfer.sh"
|
||||||
|
set -v
|
||||||
|
[ -e /tmp/coredump ] && curl --upload-file /tmp/coredump https://transfer.sh/coredump
|
||||||
|
curl --upload-file linuxdeployqt-*-x86_64.AppImage https://transfer.sh/linuxdeployqt-x86_64.AppImage
|
||||||
|
exit $RESULT
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user