#!/usr/bin/env python3 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import requests, sys import platform, configparser def detect_platform(): return platform.system() def main(): if len(sys.argv) < 4: print(sys.argv) print("Invalid number of parameters") print("Usage: upload-symbols.py symbols.zip config.ini \"long explanation\" [--system]") sys.exit(1) upload_url = "http://crashreport.libreoffice.org/upload/" login_url = "http://crashreport.libreoffice.org/accounts/login/" config = configparser.ConfigParser() config.read(sys.argv[2]) user = config["CrashReport"]["User"] password = config["CrashReport"]["Password"] platform = detect_platform() files = {'symbols': open(sys.argv[1], 'rb')} data = {'version': sys.argv[3], 'platform': platform} if len(sys.argv) > 4 and sys.argv[4] == "--system": data['system'] = True session = requests.session() session.get(login_url) csrftoken = session.cookies['csrftoken'] login_data = { 'username': user,'password': password, 'csrfmiddlewaretoken': csrftoken } r1 = session.post(login_url,data=login_data) data['csrfmiddlewaretoken'] = csrftoken r = session.post(upload_url, files = files, data = data) if __name__ == "__main__": main() # vim: set shiftwidth=4 softtabstop=4 expandtab: o/cib/libreoffice-5-4'>distro/cib/libreoffice-5-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/solenv/gbuild/PythonTest.mk
AgeCommit message (Expand)Author
2023-04-02New --with-coredumpctl to obtain core dumps of crashed tests from coredumpctlStephan Bergmann
2022-07-18Mend python support for lldb cppunit tests.Hannah Meeks
2021-10-28Fix passing DYLD_LIBRARY_PATH into lldb on macOSStephan Bergmann
2020-09-25Adapt PythonTest on macOS to PRE-/POSTGDBTRACEStephan Bergmann
2020-09-24PythonTest CPPUNITTRACE='gdb --args' needs to tunnel setting LD_LIBRARY_PATHStephan Bergmann
2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák
2019-12-16Revert "Make font-based unit test depend on instdir fonts"Jan-Marek Glogowski
2019-11-15use icerun also for python/java/ui testsLuboš Luňák
2019-07-05Make font-based unit test depend on instdir fontsJan-Marek Glogowski
2018-12-06Default all tests to run with the svp pluginJan-Marek Glogowski
2018-11-22python tests: fix user config for autotext functionsThorsten Behrens
2018-11-22Pass some env vars into all kinds of testsStephan Bergmann
2018-09-07DeInitVCL in PythonTestStephan Bergmann
2018-09-05gbuild: allow recording of CppunitTests and PythonTests tooMichael Stahl
2018-08-27rename ENABLE_HEADLESS option to DISABLE_GUINoel Grandin
2018-05-11Revert "Set SAL_USE_VCLPLUGIN=svp on all platforms to define headless mode"Mike Kaganski
2018-05-10Set SAL_USE_VCLPLUGIN=svp on all platforms to define headless modeMike Kaganski
2018-03-29Fix PythonTest_*.clean targetsStephan Bergmann
2017-12-21solenv: support PYTHON_TEST_NAME for python testsMiklos Vajna
2017-06-05gb_SUPPRESS_TESTS to build tests but not run themStephan Bergmann
2015-11-20Revert "Fix dependency for Mac"Bjoern Michaelsen
2015-11-20Fix dependency for MacStephan Bergmann
2015-11-17refactor unittest help messageBjoern Michaelsen
2015-06-24gbuild: PythonTest: run tests with --headlessMichael Stahl
2015-05-22Revert "gbuild: allow recording of CppunitTests and PythonTests too"Michael Stahl
2015-05-21gbuild: allow recording of CppunitTests and PythonTests tooMichael Stahl
2014-09-24Revert "Make PythonTests depend on the ExternalExecutable"Matúš Kukan
2014-09-24Make PythonTests depend on the ExternalExecutablePeter Foley