Upload files for debugging if linuxdeployqt segfaults

This commit is contained in:
TheAssassin
2017-05-29 23:01:17 +02:00
parent 63f2e371b6
commit df417bd38a
+18 -3
View File
@@ -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