path: root/testtools
AgeCommit message (Collapse)AuthorFilesLines
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin1-12/+12
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-19-Werror,-Wunused-variableStephan Bergmann1-4/+2
Change-Id: Ieac2e725b2baad29dedb225d6009b2abe421be04
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin2-18/+18
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-3/+0
Change-Id: I6f8c9a32bc9266f20b5fc74b4e2f60f7b6be55d3
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-2/+2
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-4/+4
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-10-31solver doesn't solve anything...Michael Stahl1-4/+2
... it is an abbreviation of "Solar Version". Since nobody can remember that: remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath and any mention thereof. Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad Reviewed-on: Tested-by: LibreOffice gerrit bot <> Reviewed-by: Michael Stahl <>
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin1-1/+1
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-28gbuild: refactor CliUnoApiMichael Stahl1-2/+2
- stop copying the DLL to OUTDIR - since that was the main reason for the separation between CliUnoApi and CliUnoApiTarget, merge the targets; the newly inherited variables are not expected to cause problems - hardcode target to URE bin dir for now, no immediate need for multiple layers Change-Id: I428d801ec7058e1c6374d8162a4118a3fe581978
2013-10-25stop looking for Jar files in solverMichael Stahl1-2/+2
Change-Id: I4d2a93fa7395354fbf2893df9e254ab39fa365af
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza4-32/+7
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Stephan Bergmann <>
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara7-0/+21
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-09-22gbuild: remove libraries from OUTDIR and WORKDIRMichael Stahl2-4/+4
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-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann2-20/+2
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/ is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
2013-09-18There are two distinct InternalUnoApis in testtoolsStephan Bergmann4-5/+28
Change-Id: Ie9663bfa522c0d2ee4f996c2f7d744aaf0600623
2013-09-10gbuild: use xml .rdb files directly from workdirMatúš Kukan2-7/+7
Change-Id: I876a41dc77a59841c39b2c1fa43f22c20940dbf2
2013-08-29Fix testtools/ scripts for Mac OS XStephan Bergmann1-3/+5
Change-Id: I0727ee99d06cec185918b1ca10fc46f7ec14928f
2013-08-27The testtools component libs are layer NONE, not URELIBStephan Bergmann2-0/+4
Change-Id: I513ca71792ed9d4010a90041f3f5b818816374c8
2013-08-19Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVATor Lillqvist4-4/+4
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-06-29remove OUString wrap for string literalsThomas Arnhold1-7/+7
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: Tested-by: LibreOffice gerrit bot <> Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-06-03re-base on ALv2 code. Includes:Michael Meeks2-42/+24
Patches contributed by Mathias Bauer gnumake4 work variously Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. 118160: Added external CoinMP library. Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars allow gbuild with empty sysroot on linux Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds imported patch extensions_i117681.patch Patches contributed by Michael Stahl gbuild: should be optional xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps 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-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2-10/+10
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06fix typoNoel Grandin1-1/+1
Change-Id: I785c022c9f38eb54ba27fd76bb032f5fa7f34b63
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks12-252/+48
2013-04-29climaker no longer needs *.rdb.oldformat input filesStephan Bergmann1-2/+2
Change-Id: I55447aba5abcc8205543c7ca64763b5c99854837
2013-04-25Fix generation of cli_types_bridgetest.dll after gbuild'ificationStephan Bergmann1-1/+3
...the "double use of udkapi.rdb in climaker call in testtools/ looked fishy" indeed. Everything built in module testtools that is not used by the "native inprocess" test case (testtools/ is more-or-less faithfully copied over from pre-gbuild times, but the code to actually (manually) execute it is effectively lost: bridgetest_client against bridgetest_server and bridgetest_javaserver; bridgetest_inprocess_java; cli_bridgetest_inprocess.exe. So this cli_types_bridgetest.dll is effectively dead code today, but at least it is a more faithful copy of the pre-gbuild version again. Change-Id: If01a9d837dc6bf3837a17878d8a4bfaf87ab6d4d
2013-04-24More "Let climaker work on *.rdb.oldformat for now"Stephan Bergmann1-4/+2
...also, the use of double use of udkapi.rdb in climaker call in testtools/ looked fishy. Change-Id: I8be22b184740d65e567df65bae51fe18066be102
2013-04-24Get rid of UnoApiMerge_uretypes, which is just a duplicate of UnoApi_udkapiStephan Bergmann1-1/+1
What is a little confusing is that the udkapi.rdb ends up as types.rdb in the installation set (in the URE's sub-tree). So all places that reference it during the build do so as "udkapi" while all places that reference it in an installation set do so as "types." Change-Id: I35d0695966b3bd703f5494b636b9782efc0d3fcb
2013-04-24Get rid of UnoApiMerge_typesStephan Bergmann2-4/+5
(The "statistic" target in offapi/ appears to have been dead code already for quite a while.) Change-Id: I0852ebf1f765ba881abb6ce4db496e949076fc64
2013-04-24gbuild: drop empty use_packages callsDavid Tardon1-3/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: Reviewed-by: David Tardon <> Tested-by: David Tardon <>
2013-04-24move URE headers to include/David Tardon1-2/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: Reviewed-by: David Tardon <> Tested-by: David Tardon <>
2013-04-16Related rhbz#867808: More apparently bogus "throw new ..." in C++ codeStephan Bergmann1-3/+3
Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
2013-04-11[API CHANGE] WIP: Experimental new binary type.rdb formatStephan Bergmann1-1/+1
Make javamaker work on top of unoidl/ instead of registry/. API CHANGE: javamaker no longer supports the -B switch, as that is meaningless with the new format. When reading from an old-format .rdb file, /UCR is hard- coded as the prefix now. Change-Id: I8cca39f8ebacd0476934f7bd493d206928d063a9
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák9-97/+87
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05Missing dependencies on UNO_SERVICES/TYPES references in solver uno ini-fileStephan Bergmann1-1/+3
...resolved at runtime by cppuhelper library on which uno executable depends. Change-Id: Id654e240fe88268de3ae690b1746591a71ba5a1a
2013-04-03Remove Mac OS X for PowerPC supportTor Lillqvist1-4/+0
Change-Id: I10b15141e6a5f93365e1cfa6fbc0c7cc3ea49b15
2013-03-20simplify OUString assignmentsChr. Rossmanith1-6/+6
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb Reviewed-on: Reviewed-by: Noel Power <> Tested-by: Noel Power <>
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold2-5/+5
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold5-74/+68
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-03-14remove legacy prj/build.lst files.Michael Meeks1-3/+0
2013-03-13gbuild: stop using $(OUTDIR)/idlMichael Stahl1-1/+1
Instead, include directly from $(SRCDIR) Change-Id: I09df3da82eead897eb194ae55d1a092452f3cdb9
2013-02-28kill random dmake leftoversPeter Foley1-26/+0
Change-Id: I64e0d72c2ebcef22a831e264012fc8e1ff3b76d7
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-27cppuhelper: new ZipPackage_cppuhelper_odk_headersMichael Stahl1-1/+1
Change-Id: I77d7ef6890ca584cf022059838c318a2811bcd5d
2013-02-27cppu: new ZipPackage_cppu_odk_headersMichael Stahl1-1/+1
Change-Id: I4ceee0ed3438a18e13c186ebd8d390604d26ec28
2013-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac1-10/+9
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: Tested-by: Luboš Luňák <> Reviewed-by: Luboš Luňák <>
2013-01-26gbuild: fix silly "expandtabs" in makefile VIM modelinesMichael Stahl6-6/+6
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl3-0/+6
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2012-12-30add runtime deps for custom targetsDavid Tardon3-14/+5
Change-Id: I49272003ea72c84c9e81bc826820b0ac5f9d5008
2012-12-25Get rid of (most uses of) GUITor Lillqvist2-7/+7
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: Reviewed-by: Peter Foley <> Tested-by: Peter Foley <>