summaryrefslogtreecommitdiffstats
path: root/external/cppunit
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate -D_GLIBCXX_DEBUG for --enable-dbgutil builds against libstdc++Stephan Bergmann2021-11-041-5/+1
| | | | | | | | | | | | | | (this was meant as a prerequisite for enabling its -D_LIBCPP_DEBUG=1 counterpart when building against libc++ on macOS, but which got stalled for now after running into the issue described at <https://lists.llvm.org/pipermail/libcxx-dev/2021-October/001222.html> "[libcxx-dev] Building a program with -D_LIBCPP_DEBUG=1 against a libc++ that is not itself built with that define") Change-Id: If466dce595a9311b2afbae41d5ddcaecc6f3c57b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124678 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Mark external/cppunit/order.patch.0 as upstreamedStephan Bergmann2021-10-211-0/+2
| | | | | | | Change-Id: Ic0bfacd74e007c979d574e65767cbfb0d40c9ef7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123965 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Centralize VS-to-toolset mapping in configureMike Kaganski2021-10-081-2/+1
| | | | | | | | | | This allows to define the mapping once, and avoid modification in multiple places each time a new VS version support is added Change-Id: I93de4c9d78c3f67a0a2e157007e9d13b6f557937 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123163 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* Add preliminary VS 2022 supportHossein2021-09-161-0/+1
| | | | | | | | | | | | | This patch changes the configure.ac, so that LibreOffice compiles with the latest VS 2022 preview. The option --with-visual-studio=2022 should be added to the autogen.input, in order to use VS 2022 preview. Change-Id: Ia1d9bbeabbbd44ffe82af3624151b69d36c0a45c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122133 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* WASM: add initial support for Emscripten cross buildJan-Marek Glogowski2021-05-052-3/+4
| | | | | | | | | | | | | | - configure with: - --host=wasm64-local-emscripten - had to make a few externals optional, so adding: - --disable-nss - --disable-cmis - --disable-curl Change-Id: I48d1c73d2675ad2e2beaf2c341578199efbd24ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111130 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
* cppunit: fix Windows Arm64 buildJan-Marek Glogowski2020-09-172-0/+787
| | | | | | | Change-Id: I75b169362ed703bcae0720aeac0602f389435317 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102857 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
* WIN add and apply default msbuild platform+configJan-Marek Glogowski2020-09-151-2/+2
| | | | | | | | | | | | | | | Adds three Windows gb_* variables: - gb_MSBUILD_CONFIG_AND_PLATFORM can be passed as msbuild flags - gb_MSBUILD_PLATFORM maps debug / release settings - gb_MSBUILD_CONFIG maps the CPUTYPE to the default msbuild names and converts the users in external projects. Change-Id: Ie9b817721180d78d104db11c44241e4b3e46bba9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102701 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
* external/cppunit: Run tests in deterministic orderStephan Bergmann2020-08-082-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What prompted me to make this change is that when I tried an --enable-lto build, CppunitTest_xmlsecurity_signing failed in a non-obvious way, and I noticed that it ran the individual tests in a different order than a --disable-lto build. With this change, CppunitTest_xmlsecurity_signing also started to fail in the --disable-lto build, which has meanwhile been fixed with 800eebfa82106c509310ed43bef38a7a4ad4451f "Database document apparently needs to be closed before it is disposed". No other tests started to fail in my Linux --disable-lto-build with this change, and my Linux --enable-lto build (using recent Fedora 32 GCC 10.2 and the default linker) also succeeds `make check` after 800eebfa82106c509310ed43bef38a7a4ad4451f, both with and without this cppunit change. (<https://bugs.documentfoundation.org/show_bug.cgi?id=126442> "LTO build segfaults in sw_apitests" and <https://src.fedoraproject.org/rpms/libreoffice/c/ 5d644f1606b76ffa4a102433849a824d7293a404> "%check fails with lto enabled" indicate that older branches also fail CppunitTest_sw_apitests with --enable-lto, but I could not reproduce that on current master.) What happens in cppunit is that every CPPUNIT_TEST_SUITE_REGISTRATION (or other macro like CPPUNIT_TEST_FIXTURE internally calling CPPUNIT_TEST_SUITE_REGISTRATION) creates a global static variable whose ctor inserts the address of a sub-object of that global static variable into the TestFactoryRegistry::m_factories set. Even if the order of invocation of those ctors from one .cxx is deterministic, the relative order or the addresses of those sub-objects inserted into the TestFactoryRegistry::m_factories set need not be (though they probably typically are). Another source of nondeterminism is that the order of ctors from different .cxx is not specified (which might have caused the CppunitTest_xmlsecurity_signing failures, given that test includes suites from two different .cxx). So to make test execution more reproducible, make the order in which the tests are run deterministic, sorting them by name. (When TestFactoryRegistry::addTestToSuite the adds the sorted tests to TestSuite::addTest, they are inserted into a TestSuite::m_tests vector, from which point on things appear to already happen in a deterministic order.) Change-Id: I40741f397a96772974fd41bacdb3dd763c885417 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100384 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* external/cppunit: -g based on --enable-symbols, not --enable-debugStephan Bergmann2020-08-071-1/+1
| | | | | | | Change-Id: I35ceb0069082cb66f1bc09591baace594f0dc030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100297 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Bump Windows build baseline to Visual Studio 2019 16.4Stephan Bergmann2020-03-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | (where 16.4 is currently the latest version of Visual Studio 2019 available at <https://visualstudio.microsoft.com/downloads/>), see <https://lists.freedesktop.org/archives/libreoffice/2020-February/084575.html> "ESC meeting minutes: 2020-02-27": "Update baseline to VS2019 on master before 7.0 [...] check what’s the current patch level, require that? [...] no objections" The code from 4ea0059bca6dd84f10abcf52f6d6b81c1afec397 "VS detection: Fallback to old registry check if vswhere failed" has been removed in accordance with its comment "The below hack does not work for VS 2019 anyway, so should be removed when upgrading baseline. (Changing the comment "go to Start menu, open 'Visual Studio 2017', [...]" regarding the installation of GNU Make from source is somewhat arbitrary, but lets stick to the tradition of bumping that version number along with any build baseline bump.) Change-Id: Ic4fe8a3d347aa1748377f2d3205e302bff189b79 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89699 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins
* GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák2020-02-161-0/+4
| | | | | | | | | | See instructions in solenv/gbuild/Trace.mk . This generates a file than can be viewed e.g. in the Chromium tracing view. Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
* update cppunit to 1.15.1Markus Mohrhard2019-12-244-79/+7
| | | | | | | Change-Id: Ic27a77addb409a8d63ea44136a8d2410ee40c4d2 Reviewed-on: https://gerrit.libreoffice.org/85539 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Initial VS 2019 SupportTomoyuki Kubota2019-04-161-1/+2
| | | | | | | | Change-Id: I8e08efb549ebd52c37183a1185d6de73f2b00601 Reviewed-on: https://gerrit.libreoffice.org/64630 Reviewed-by: himajin100000 <himajin100000@gmail.com> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Michael Stahl <Michael.Stahl@cib.de>
* Better fix for missing [[noreturn]] of CPPUNIT_FAILStephan Bergmann2019-02-012-0/+60
| | | | | | | | | | | This includes a revert of commit 9808486a89c6368f836579f8d8c0dda63fd0063c "Avoid -Werror,-Wimplicit-fallthrough with clang-cl", and also undoes older MSVC workarounds (that would start to cause "warning C4702: unreachable code" now). Change-Id: If72bf336e12e0a2db589857e8875003dae861977 Reviewed-on: https://gerrit.libreoffice.org/67248 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Minimum Supported Version is VS2017himajin1000002019-01-161-1/+0
| | | | | | | Change-Id: Id771f1fe0d8c6702a52836f6229a944d259fed4c Reviewed-on: https://gerrit.libreoffice.org/66424 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
* gbuild: rename value OS=IOS to OS=iOSMichael Stahl2018-11-011-1/+1
| | | | | | | | | | | | | | | | This gets rid of the horrible hack in gbuild.mk to accomodate the case-incorrect iOS platform makefiles that cannot be renamed without upsetting git on file systems that sadly lack the case sensitivity feature. Keep the macro defined to IOS though. Change-Id: I1022bfef4900da00e75fc1ccce786b20f8673234 Reviewed-on: https://gerrit.libreoffice.org/62705 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
* Do build cppunit for iOS, tooTor Lillqvist2018-09-271-0/+2
| | | | | | | | | | I am writing a separate unit test app that will include selected existing unit tests that make sense and are important to run on iOS. Change-Id: I4722f1ed872ba21e181eeba5ed3b58e82d8fed72 Reviewed-on: https://gerrit.libreoffice.org/61049 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
* Mark external/cppunit/gcc9.patch.0 as addressed upstreamStephan Bergmann2018-08-071-0/+2
| | | | | | | Change-Id: I9071acc34d07f3819fb40c93bbee6b5bcc79a14a Reviewed-on: https://gerrit.libreoffice.org/58691 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* external/cppunit: silence -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann2018-07-262-0/+12
| | | | | | | Change-Id: I2daec11938361a6988741bd29e713a36a4c77414 Reviewed-on: https://gerrit.libreoffice.org/58042 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* cppunit: also build 64-bit DLL always with PDB fileMichael Stahl2018-06-291-0/+16
| | | | | | | | | | | | | | | Note: this maps to /Z7 apparently: <DebugInformationFormat>OldStyle</DebugInformationFormat> https://msdn.microsoft.com/en-us/library/bb629394.aspx lists various options but passing /p:DebugSymbols=true /p:DebugType=full /p:PdbFile=... to msbuild.exe by itself doesn't do anything while patching the project file works. Change-Id: I888b5f6af7be519e2d35b749873ae7d35bb0bf9d Reviewed-on: https://gerrit.libreoffice.org/56605 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
* android: use unified headers and llvm-c++ STL (x86) with NDK 16Christian Lohmaier2018-01-181-1/+1
| | | | | | | | | | | | | gnustl (and others) are to be removed in future versions of the ndk also bump gradle and build-tools to current versions along with it arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix that later Change-Id: Ic794c3293b599b77ec48096bf3283a99c09cbb79 Reviewed-on: https://gerrit.libreoffice.org/45163 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
* builds externals without werrorCaolán McNamara2017-07-151-0/+1
| | | | | | | | | | | | I get a warning under MacOSX of argument unused during compilation -I . -Werror,-Wunused-command-line-argument Change-Id: I0ae48783eefa52a829471e51a94c79d235dc2f38 Reviewed-on: https://gerrit.libreoffice.org/39988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* sal,external: remove checks for obsolete VCVER=120Michael Stahl2017-05-301-1/+0
| | | | Change-Id: I4d32b7c4b2e545a8d979bc516f64cfcbf66ecd07
* update cppunit to 1.14.0Markus Mohrhard2017-04-145-90/+2
| | | | | | | Change-Id: I95fa42f4ef0580734b605df859c1660b29adb8b2 Reviewed-on: https://gerrit.libreoffice.org/36499 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* MSVC 14.0: Make it work with older SDK versionDavid Ostrovsky2017-02-221-1/+1
| | | | | | | Change-Id: I50a9e8b122250af445c2a1b3d0941d508e027318 Reviewed-on: https://gerrit.libreoffice.org/34528 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
* Fix check for non-empty UCRTVERSIONStephan Bergmann2017-02-211-1/+1
| | | | | | | | | | | ...introduced with b862cbdd345ec57c2595629ded6a3969e1e65d56 "Support MSVC 15.0", but $(filter ...,) always expands to the empty string, and this is probably what was intended. Change-Id: I5865ea13ba3c3d52402bcba48f4f770f6c2b8862 Reviewed-on: https://gerrit.libreoffice.org/34482 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Support MSVC 15.0David Ostrovsky2017-02-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | New compiler changes quite some stuff: * Compiler detection done based on different registry key * .NET SDK detection done based on different registry key * Msbuild installation directory changed * Merge modules installation directory changed * SDK number in registry doesn't match the directory name: (registry key: 10.0.14393, directory name: 10.0.14393.0) * Compiler, include and library location directories changed * Architecture specific directory changed: x64 instead of amd64 * Compiler own include directory must be added with -I option * To force usage of SDK 10 (8.1 is selected per default) new switch WindowsTargetPlatformVersion is passed to msbuild, to avoid patching VC project files with this line: <WindowsTargetPlatformVersion><SDK>/WindowsTargetPlatformVersion> Known issues: * Firebird is broken: http://paste.openstack.org/show/594333 Change-Id: I148d7932aff43bbbd07bd493504df974726234c2 Reviewed-on: https://gerrit.libreoffice.org/31279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
* Remove MinGW supportStephan Bergmann2017-02-101-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In OOo times, there'd originally been efforts to allow building on Windows with MinGW. Later, in LO times, this has been shifted to an attempt of cross- compiling for Windows on Linux. That attempt can be considered abandoned, and the relevant code rotting. Due to this heritage, there are now three kinds of MinGW-specific code in LO: * Code from the original OOo native Windows effort that is no longer relevant for the LO cross-compilation effort, but has never been removed properly. * Code from the original OOo native Windows effort that is re-purposed for the LO cross-compilation effort. * Code that has been added specifially for the LO cross-compilation effort. All three kinds of code are removed. (An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing --with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.) Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568 Reviewed-on: https://gerrit.libreoffice.org/34127 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* externals: remove various obsolete MSVC2012 specific flagsMichael Stahl2015-09-091-2/+0
| | | | Change-Id: I8848d042a008c21e407d9610161b5c67d2137a18
* Fix cppunit on MSVC 14.0David Ostrovsky2015-09-021-1/+2
| | | | | | | Change-Id: Iebfbd843cd3fbe46f3e090654a8493adb5309800 Reviewed-on: https://gerrit.libreoffice.org/17341 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* external/cppunit: Visible function type RTTI for Clang -fsanitize=functionStephan Bergmann2015-01-262-0/+16
| | | | Change-Id: Ie2a6e993b7982629aed650d6534a09a9eefe1c51
* realityTakeshi Abe2014-12-151-1/+1
| | | | Change-Id: I498507ad7d951a71f7be2c0d3c411756e0462f7d
* add some more kill paths to cppunitCaolán McNamara2014-11-031-1/+9
| | | | Change-Id: I8610e99aecc725e349976746af6c8bd560ba2ffa
* upgrade to cppunit 1.13.2Thomas Arnhold2014-08-143-14/+2
| | | | | | | | | | * remove obsolete patch part * enable x64 target for vc project file on win64 Change-Id: Ie794c08c9f739ad8c9c68c423f72e79ed4f6b0ff Reviewed-on: https://gerrit.libreoffice.org/10856 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* VS2013: Override ToolsVersion settingThomas Arnhold2014-08-091-1/+1
| | | | | | | | | Otherwise those external projects will fail, because with only VS2013 installed there is no ToolsVersion 4.0 (which is set inside the VC projects files). http://msdn.microsoft.com/en-us/library/bb383985.aspx Change-Id: I144ba1ef95372226ebadb082e3a78155cca316fd
* VS2013: Adjust cppunit to 12.0 vcproj versionDavid Ostrovsky2014-07-111-2/+3
| | | | | | | Change-Id: I9223fc0620bf31389ab4ea0971835dd7a27feb7e Reviewed-on: https://gerrit.libreoffice.org/10159 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Handle VCVER==120 (VS 2013) tooTor Lillqvist2014-07-071-1/+1
| | | | Change-Id: I4dbf663790bd8906ef8b123a01bdf52e0c0c1962
* try and help scan-build out wrt cppunit assertsCaolán McNamara2014-07-062-0/+55
| | | | Change-Id: Id86607802415ad069aa88be98012a5c99f594218
* externals: do not use "v110_xp" when building with MSVC 2012 and SDK 8.0Michael Stahl2014-05-261-1/+3
| | | | Change-Id: I40bc9e4c31e270f29cc145b5d2f3544cad586bf7
* cppunit: always compile with debugging symbols on windows.Michael Meeks2014-05-243-5/+22
| | | | | | Also cleanup some makefile pieces and give better error warnings. Change-Id: I9f20d60f26d5828f60664941946c266c7d166f32
* dlclose confuses LeakSanitizerStephan Bergmann2014-05-231-1/+9
| | | | Change-Id: I2bebbf1615ddc3619bcc3bf940f70c0967ce8534
* Adapt CppUnit to our CPPUNIT_PLUGIN_EXPORTStephan Bergmann2014-05-222-0/+12
| | | | | | | | | ...which mentions extern "C", so CppUnit's TestPlugInSignature must reflect that. It is a bit odd how CPPUNIT_PLUGIN_EXPORT needs to be passed into CppUnit, so probably best to keep this as a local patch for now. (Clang's -fsanitize=undefined complained about the mismatch.) Change-Id: Ied179a1afe82ceb04de4739c14cf8fadff31b80f
* fdo#77891 fix python crash when in GUI mode, target WinXP with VS2012Christian Lohmaier2014-05-191-2/+2
| | | | | | | | | VS2012 did change return value of fileno function, this results in a crash when run in GUI mode (but not when launching from a shell), as python tries to access the nonexisting stdin/stdout/stderr Also explicitly target Windows XP Change-Id: Ic783713b55453f3c38b2e766a664b7f4678711de
* coverity#12093[81-94], etc. null pointer dereferenceCaolán McNamara2014-05-102-0/+12
| | | | | | | | | coverity seems to think that code execution can continue after a coverity test fails, but it will effectively halt and not trundle into the dereference of the tested-for-NULL pointer, try a [+kill] on the fail method Change-Id: I07c9a074b5681c367a31637c8af78d52a9c88d59
* normalize values of CROSS_COMPILINGMichael Stahl2014-02-271-1/+1
| | | | Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
* cppunit: remove ExternalPackageMichael Stahl2013-10-242-51/+0
| | | | | | The DllPlugInTester executable is apparently unused. Change-Id: I1d26aebe8aa67b037438bd21bb00496804c41125
* Revert "Repository.mk: adjust layer of libraries in smoketest instset"Michael Stahl2013-10-221-1/+1
| | | | | | This reverts commit 1b736bf55e8ca79a06faabfa9866fffa6cab6c81. Obsoleted by commit 359472b2b50165966c27c239eccd3ecfb03e2acc.
* Fix building from inside modules moved to externalKhaled Hosny2013-10-181-1/+1
| | | | Change-Id: Id6023dc3751fe70984f489682be17d1ab1855f71
* We don't use cppunit when cross-compilingTor Lillqvist2013-10-173-60/+0
| | | | Change-Id: I8ff723233546d9becd001ab54a7df5ad98223f90
* fdo#70393: move cppunit to a subdir of externalKhaled Hosny2013-10-1712-0/+326
Change-Id: I96ab796757af0c6c6741059b35fcaeefc2bf4507 Reviewed-on: https://gerrit.libreoffice.org/6286 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>