summaryrefslogtreecommitdiff
path: root/solenv/gbuild/CppunitTest.mk
AgeCommit message (Collapse)Author
2014-06-12Fix vclplug_* dependencies for gb_CppunitTest_use_vclStephan Bergmann
...and replace gb_CppunitTest_unset_headless with gb_CppunitTest_use_vcl_non_headless. Change-Id: Ibd859f98ed8df09988ca26ffcee26e06e25d8313
2014-06-04DeInitVCL at end of testsStephan Bergmann
This required some changes to the framework: * Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but once per CppunitTest invocation in a new vclbootstrapprotector (similarly to the exisiting unobootstrapprotector). CppunitTests that need VCL now need to declare gb_CppunitTest_use_vcl. * For things to work properly, the UNO component context needs to be disposed from within DeInitVCL (cf. Desktop's Application::DeInit called from DeInitVCL). The easiest solution was to introduce an Application::setDeInitHook (where the hook is called from DeInitVCL) specifically for vclbootstrapprotector to call. * PythonTests don't (yet) call DeInitVCL; they still hook into BootstrapFixture's original test_init functionality (to call InitVCL), and do not make use of the vclbootstrapprotector. Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-05-26Do not override VALGRIND_OPTS=--leak-check=fullStephan Bergmann
Change-Id: I35c8376a45fa7ed2cc292ed9442e4ddf2e4172db
2014-03-31SAL_DIAGNOSE_ABORT is no longer usedStephan Bergmann
Change-Id: I87090e2714bca3ea7a9ad8a8ff966702139ba345
2014-03-31Remove now unused obsolete tools/debug.hxx functionalityStephan Bergmann
Change-Id: I1bc585af8f0189dfa219bd42a5f09871a006c6ea
2014-03-14Don't Valgrind into java children in unit testsStephan Bergmann
...similarly to desktop/scripts/soffice.sh preventing that for LO itself. One problem is that, even if it does not find any errors, Valgrind writes onto a traced child's stderr, and when jvmfwk searches for a JRE to use, it takes output to stderr into account, so would start to behave differently when run under Valgrind. --trace-children-skip appears to be new since Valgrind 3.6, and older versions would probably fail early when they see this unknown-to-them option. If this turns out to be a problem in practice (current version is 3.9), we probably need to make this conditional on a configure.ac check. Change-Id: Ia6a72bdcd666d68ed0539170f3fc476292e82b96
2014-01-23make unittest failure foo a scriptBjoern Michaelsen
- first of all, code from CppunitTest.mk used from PythonTest.mk is bad anyway - also, this shortens and removes noise from the commandline executed Change-Id: I6c5b41a0c497b766c3293aeec5c59240aa3ef37c
2013-12-08Give each CppunitTest its own UserInstallationStephan Bergmann
Change-Id: I0772c596a3d49e63a728281261db21817fcda156
2013-12-03Package cppuhelper_unorc does not exist.Matúš Kukan
Change-Id: Ib80cdc1408c8784db066b35f27993f8521772a76
2013-11-22Further && vs. ; clean-upStephan Bergmann
Change-Id: Ie4cb4113e98661d5c4b31a60ce1826b273c3cbc0
2013-11-22always cat cppunit test log on failureChristian Lohmaier
and not only when gdb is installed / the postprocess script succeeds Change-Id: I36e2fcdb81296252d7402d77154e45614cb70038
2013-11-07Include backtrace in logStephan Bergmann
Change-Id: I76306ac61365282ef2de4869c1c8e21e044304ff
2013-11-04gbuild: remove error stubs for renamed/removed functionsMichael Stahl
Change-Id: If1d0d5294af87f2b780deadb21d12a6ee90dead6
2013-11-02remove SOLARENV variableMichael Stahl
It is constant and can just be replaced by $(SRCDIR)/solenv. Use BUILD_TYPE where it was used to check if config_*.mk is sourced. Change-Id: Ib9d480c57194b6340093aa47776f8768df69b7d1
2013-10-31gbuild; CppunitTest: use INSTDIR in add-auto-load-safe-pathMichael Stahl
Change-Id: Id9520beb1b50d580b6331c7a554794d88775faab
2013-10-29gbuild: move unittest mock profile to WORKDIRMichael Stahl
Change-Id: Idd6420a855fec8b44fce6c0694b491d5f1eec95e
2013-10-29gbuild: remove gb_CppunitTestFakeExecutable_get_targetMichael Stahl
... use the real Executable instead Change-Id: I46b8374e921b9165a6bb71fba6f6f3459dd18c67
2013-10-29gbuild: stop using stuff in OUTDIR/unittest/installMichael Stahl
Change-Id: Icdfe1282d5e636a034ee7d1b16b9a113a9b70492
2013-10-02we do not need .xcd files in solverMatúš Kukan
Change-Id: Ic08b12b0deb7342c520a5385c226d864596fc858
2013-10-02Fix path for Mac OS XStephan Bergmann
Change-Id: I9d4c40224def46647aa6d6003125cbe7b3a7d0b2
2013-10-02use CPPUNITTRACE now and explain how to use with visual studioMarkus Mohrhard
Change-Id: Ic8a76ac6eb96fe82707512ad8e00fef8309111ef
2013-10-02Fix dependencyStephan Bergmann
Change-Id: I7b0c4bad7dfce63f0b3f565816f6197d674e62cd
2013-10-01gbuild: use .xcd configuration files from instdirMatúš Kukan
..instead of .xcu files in solver/*/xml/registry when running unittests and gengal. Change-Id: I390a6c531d653acca7ef3379c49fe65fcb8f3c2a Reviewed-on: https://gerrit.libreoffice.org/6057 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-09-25Start hacking --enable-canonical-installation-tree-structure back into shapeTor Lillqvist
Had been totaly broken by the recent changes. (Which is fine, it is just an experimental hack anyway, I am not sure whether it will ever be used in anger. Just a pet peeve of mine, I dislike seeing libraries, configuration files, resources etc mixed together in one "program" folder, especially on OS X, where the convention is to have app-specific dylibs and frameworks in "Frameworks", and resource files in "Resources". But this is not any requirement as such; there are apps in the Mac App Store that blatantly "break" this convention.) Basically, replace uses of gb_PROGRAMDIRNAME and gb_Package_PROGRAMDIRNAME with more specific LIBO_FOO_FOLDER, which for normal builds all expand to the same "program" anyway. Change-Id: I16c2b3351caa00e251e229aafbccb8346042d3c1
2013-09-25Add LO_JAVA_DIR to CppunitTest env.Andrzej J.R. Hunt
This is needed for e.g. HSQLDB to run in a unit test. Change-Id: I71d6de35fc20512afaebf8a76a052640a07fba6b Reviewed-on: https://gerrit.libreoffice.org/6023 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-09-23Try to fix cross-compilationTor Lillqvist
Add more FOO_FOR_BUILD variables and some gb_Foo_for_build functions. Get rid of gb_INSTROOT and gb_DEVINSTALLROOT, just use INSTROOT. Change-Id: Iee531b02d14fae41edb68ad589a5dec829a60255
2013-09-22sal: rename "cppunit/cppunittester" executableMichael Stahl
... and put it in OOO layer since it's used by the smoketest instset. It was in subdirectory for hysteric reasons, to pick up libraries from module local output directories in the dmake build system. Change-Id: I73b66672b17ede52c03071eb2ddee1a23c059ea9
2013-09-22gbuild: remove libraries from OUTDIR and WORKDIRMichael Stahl
Refactor everything to find and link libraries directly in INSTDIR. - add gb_LinkTarget_get_linksearchpath_for_layer, and use it to set up -L paths for T_LDFLAGS in such a way that only allowed libraries can be linked against; i.e. it's not possible to link URE linktargets against OOO or not-installed libraries - gb_Library_get_target is now same as the gb_LinkTarget_get_target (TODO: this needs cleanup) - since a pattern rule won't work for linking libraries in INSTDIR, add a separate per-file rule for every INSTDIR lib - pattern rule can't find link target in the clean target any more so add a LINKTARGET variable - disable gb_Library_add_auxtarget, no auxtargets need to be copied - tweak the call to gb_Library_Library_platform to pass in a path in sdk/lib for the versioned URE libs - fix the Library clean target - add LAYER parameter to gb_LinkTarget_LinkTarget - adjust platform link commands - MSVC link command now uses explicit -manifestfile and -pdb parameters to keep misc. files out of INSTDIR - remove gb_Helper_OUTDIR_FOR_BUILDLIBDIR - adjust Extension, CppunitTest, JunitTest, PythonTest, Gallery, various CustomTargets to search INSTDIR - remove SDK library symlinks and import libs from odk/Package_lib - on Mac OS X, put .dylib symlinks into sdk/lib even though those are not packaged and would be created by the SDK configury; we need these to be somewhere for linking anyway - add a (unfortunately cyclic) dependency on Package ure_install to sal Change-Id: I70d88742f8c8232ad7b9521416275c67b64fe6cf
2013-09-22gbuild: make the DLL the LinkTarget of Library and CppunitTestMichael Stahl
... instead of the import lib. If the DLL is an auxtarget, it cannot be deleted without annoying errors, and we want to be able to rm -r $(INSTIDR) and build incrementally from there. - replace DLLTARGET -> ILIBTARGET - replace gb_Library_DLLFILENAMES -> gb_Library_FILENAMES - replace gb_Library_FILENAMES -> gb_Library_ILIBFILENAMES - replace gb_Library_get_dllname -> gb_Library_get_filename - replace gb_Library_get_filename -> gb_Library_get_ilibfilename - replace gb_CppunitTest_get_libfilename -> gb_CppunitTest_get_ilibfilename - replace gb_LinkTarget_set_dlltarget -> gb_LinkTarget_set_ilibtarget Change-Id: I92a2f061a653b9b5941f3232d729987b1317b6f8
2013-09-22gbuild: refactor LinkTarget representationMichael Stahl
If the link targets are not in workdir then 2 different aspects are needed: the previously used location relative to workdir's LinkTarget dir (for all the misc. related targets), and the full target file. Adding an additional parameter to all LinkTarget functions would be quite annoying, especially since it would need passing through all the gb_LinkTarget__use functions in RepositoryExternal.mk; instead encode both into the linktarget itself, and modify the functions gb_LinkTarget_get_target to return the target and all others to return the workdir linktargetname. - replace gb_Library_get_linktargetname with either: * gb_Library__get_workdir_linktargetname * gb_Library__get_linktarget_target * gb_Library_get_linktarget - similar for gb_Executable_get_linktargetname - similar for gb_StaticLibrary_get_linktargetname - similar for gb_CppunitTest__get_linktargetname - add calls to gb_LinkTarget__get_workdir_linktargetname where needed Change-Id: I917ad7957fee50ec2517a9f9cc9ff452c8d97d1b
2013-09-10gbuild: use xml .rdb files directly from workdirMatúš Kukan
Change-Id: I876a41dc77a59841c39b2c1fa43f22c20940dbf2
2013-08-26Some cleanup and consolidation of the Impress layout work.Thorsten Behrens
Also make unit test work again after Mac-app like path changes. Change-Id: I13eae20141650e1d1d826a794d1f19baaef5f561
2013-08-22At least CppunitTest_connectivity_ado requires the affine_uno bridgeStephan Bergmann
Change-Id: I15b7069e2c7362b9554bf0f869d7c922895a6466
2013-07-17remove gb_LinkTarget_add_noexception_objectBjoern Michaelsen
Change-Id: I44f7df6e5f816cfcf7a44c6c4c76e80924237d45 Reviewed-on: https://gerrit.libreoffice.org/4955 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-06-11Allow --headless to be disabled for unit tests.Michael Meeks
Change-Id: I9f2a97715dc0d7fc5905afb1b908de97acdafc57
2013-06-07use .component files directly from workdirMatúš Kukan
Change-Id: Idaf2e1c33dcdf060756b5739c4a8d904dbdc699b
2013-06-03re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1397337 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. http://svn.apache.org/viewvc?view=revision&revision=1230971 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. http://svn.apache.org/viewvc?view=revision&revision=1232004 118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks http://svn.apache.org/viewvc?view=revision&revision=1310178 macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars http://svn.apache.org/viewvc?view=revision&revision=1183367 allow gbuild with empty sysroot on linux http://svn.apache.org/viewvc?view=revision&revision=1179186 Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database http://svn.apache.org/viewvc?view=revision&revision=1167540 http://svn.apache.org/viewvc?view=revision&revision=1167539 Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds http://svn.apache.org/viewvc?view=revision&revision=1232430 imported patch extensions_i117681.patch http://svn.apache.org/viewvc?view=revision&revision=1172102 Patches contributed by Michael Stahl gbuild: RepositoryFixes.mk should be optional http://svn.apache.org/viewvc?view=revision&revision=1166123 xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT http://svn.apache.org/viewvc?view=revision&revision=1363727 Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 Remove lots of OS2 conditionals, re-extract Rhino Java, unwind cppunit pieces, cleanup Mac image bits, remove coin-mp and re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand MPLv2 subset checking. Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-05-13Add missing \n.Jan Holesovsky
Change-Id: I2fbfd9bc214eff1f224e257a0142b64cb5ffaeb2
2013-05-08valgrind --trace-children=yesStephan Bergmann
...at least needed for PythonTest on Linux with internal python, where the valgrind'ed gb_Python_INSTALLED_EXECUTABLE is /bin/sh $(gb_DEVINSTALLROOT)/program/python. Also, remove --quiet again to avoid frustration ("when valgrind /is/ run, why doesn't it output any "==" lines at all?"). Change-Id: Id83e53f2b472b5af92e4aaec0c173ecdec45bc48
2013-04-30...and fix gb_UNIT_FAILED_MSG outputStephan Bergmann
Change-Id: I0fa3036c5be34eb598e0390430028ae818ebef0d
2013-04-30More helpful message how to re-run a unit test that failed.Jan Holesovsky
Change-Id: Ibd85ecd6a24611313a24b79b3e4b122eccd02a81
2013-04-18gdb-core-bt: don't talk about core files without a reason.Miklos Vajna
When exit code is <128, then the test probably just failed, it did not get a SIGSEGV or similar signal, so it's expected that no core file is created. Change-Id: Ie9e3599bd6738c04afacb95000d09f9dd2a5c426
2013-04-13add gb_CppunitTest_use_custom_headersDavid Tardon
Change-Id: I6bca241552bb6f8fa84cf8b45e91e9a86e12dc41
2013-04-03Show backtraces for core files from CppunitTests, tooStephan Bergmann
Change-Id: Idff2831913b6fb6e5b522ae36fffeb345e3a1140
2013-03-16auto-load the gdb helpers for cppunit test debuggingPeter Foley
Change-Id: I75e08fa1de5affdb3b42d169bb5ccac50c8c736e
2013-03-06do not execute unit tests when cross-compilingMatúš Kukan
For both build and host platform. Change-Id: I0fa9b5d85449887c2c6bd758fb1fecec9776d97c
2013-02-25Last use of obsolete gb_*_add_api is long goneStephan Bergmann
Change-Id: Ia6c938ef0e45ec86c0c202e95ef28d49fccd3497
2013-01-30Get rid of STAR_RESOURCEPATHStephan Bergmann
...the only remaining use was for CppunitTest to find the .res files in $(OUTDIR)/bin/. Get that solved by delivering the .res files also to $(OUTDIR)/unittest/install/program/resource/ (new gb_ResTarget_get_unittest_target). Change-Id: I370e7cab4223256356c7511b88ae63d9c0dbf215
2013-01-03do not set LD_LIBRARY_PATH twice for unittests at allLuboš Luňák
It is already set by gb_CppunitTest_CPPTESTPRECOMMAND (or should be), and doing it here again causes problems avoided by 265feeb31ffc08cd4ccbe48398cd41d9cf1e2a25 , or when ICECREAM_RUN is set. Change-Id: I5ebe8ad735ea6ff8cb1c205c55c45b93550c8b55
2013-01-02fix 'DEBUGCPPUNIT=TRUE make subsequenttest'Noel Grandin
When running a unit test under GDB, we do not want to prefix the cppunittester executable with the LD_LIBRARY_PATH, because that has already happened before the "gdb --args" part of the command line. Change-Id: If3f81ba3fc3e5260142d7e9c2d4a78e9ca63382c Reviewed-on: https://gerrit.libreoffice.org/1532 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>