Commit Graph
64 Commits
Author SHA1 Message Date
Jan-Marek Glogowski e81414d39b Drop needless junit and python make conditionals
JunitTest and PythonTest modules check for these themself.

Change-Id: Ia453bc99571738b01cc8f161f346cb6c37b2e429
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88832
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-02-17 02:45:56 +01:00
Tor Lillqvist 6eb5cffa1c tdf#129375: Avoid crash when inserting bibliography entry on iOS
I don't really know how the bibliography functionality works and how
it is connected to database stuff. Until now Library_bib for
instance was excluded for iOS because it was seen to be part of the
"DBCONNECTIVITY" feature. Change that now. Also, build the dba and
dbahsql libraries also in the non-DBCONNECTIVITY case. This at least
avoids the crash and avoids new warnings about missing constructors or
factories.

Change-Id: I8a8c62a895fcd43e7fa725a4707ac5ad428a64b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86043
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86045
Tested-by: Jenkins
2019-12-31 15:07:09 +01:00
Caolán McNamara 0e944350e9 [API CHANGE] remove MacroMigrationWizard
https://wiki.openoffice.org/wiki/Macros_in_Database_Documents

Prior to OpenOffice 3 (2008) base didn't support macros, but
subdocuments might have had macros. since OOo3 base supported macros
and subdocuments not, and a migration wizard is available to update
pre OOo3 documents to the new scheme.

Here I presume whatever is going to get migrated has been migrated
at this point and drop the migration wizard

This undoes the addition of the idl for
sdb::application::MacroMigrationWizard of

commit 5b982b6936
Date:   Mon Mar 11 17:51:56 2013 +0200

so flag as an api change, though not to anything published

Change-Id: I37271752234dda4e7e8f033e0136825fd356439b
Reviewed-on: https://gerrit.libreoffice.org/78326
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-08-31 15:07:47 +02:00
Xisco Fauli 2e26ef34bf tdf#126268: first byte is not used for the sign symbol
This code is just broken, negative numbers and positive
numbers above 25 are incorrectly migrated if using decimal.
E.g:
-1 -> 24,6
26 -> -6527'6

thus, delete it and pass the 8 bytes as they are to
lcl_double_dabble.

Note: this only fixes the positive numbers,
-1 still returns 24,6

Code introduced in 6039d2463b

Change-Id: Id0e249e47a91b274a247fb7e8b71353114149650
Reviewed-on: https://gerrit.libreoffice.org/75375
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2019-07-11 15:23:17 +02:00
Michael Stahl a626bdd56d gbuild: rename value OS=IOS to OS=iOS
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>
2018-11-01 16:39:54 +01:00
Michael Stahl db7f8a8ec0 dbaccess: CppunitTest_tdf119625 requires firebird
Change-Id: I21a100209d9177b80cfb9f4a629fb320626df1b7
Reviewed-on: https://gerrit.libreoffice.org/62511
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-10-30 10:17:43 +01:00
Christian Lohmaier f0e1f4fd55 fix build --without-java - CppunitTest_dbaccess_tdf119625 uses hsqldb
introduced with 4d7dd4e1e4

Change-Id: I118b6185fc01b2234d2a20da76b0e19929f9812a
2018-10-26 20:17:35 +02:00
Terrence Enger 4d7dd4e1e4 tdf#119625: coerce migrated Time between 0 and 24 hours
Coincidentally, remove unwarranted addition of one hour
    Added unit test dbaccess_tdf119625

Change-Id: I84a47c7abd4ab8e2c80d3faaf8cf4f11e1b81df3
Reviewed-on: https://gerrit.libreoffice.org/60048
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Tested-by: Tamás Bunth <btomi96@gmail.com>
2018-10-22 16:18:39 +02:00
Tamas Bunth e04e7a7214 Add unit test for mysqlc connector
It can be used to test the mysqlc connector whenever there is an
external mysql or mariadb server running.

The test runs only when CONNECTIVITY_TEST_MYSQL_DRIVER environment variable
is set. This variable should contain the URL of the database, including
the port number and the host name.

The URL should also contain a user name password pair which can be used
to connect to the external database. The URL format is the following:

[user]/[passwd]@sdbc:mysql:mysqlc:[host]:[port]/[db_name]

README is updated and contains detailed information about the test.

Change-Id: I1bbc9369ff193a29c06de63a0f6cc975877c8da3
Reviewed-on: https://gerrit.libreoffice.org/62171
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-10-22 15:43:29 +02:00
Rene Engelhard 36befb3aca tdf#72987 split firebird test into a regression test and a "new" test
former with endianness and latter with the new fbk format.
Add new endianness-independent firebird test odbs

Change-Id: I29be2e6916fcca74744211dba04463376fb6b8d5
Reviewed-on: https://gerrit.libreoffice.org/60917
Reviewed-by: Rene Engelhard <rene@debian.org>
Tested-by: Rene Engelhard <rene@debian.org>
2018-10-03 10:13:31 +02:00
Rene Engelhard f104b3cafe tdf#72987 run firebird test for little endian only for now
since those old(er) files still use the endianness-depending format.
And remove x64 from the filename...

Change-Id: I24e56cd8561c2ec6a1f77a66907c14cdea8248b6
Reviewed-on: https://gerrit.libreoffice.org/60916
Tested-by: Jenkins
Reviewed-by: Rene Engelhard <rene@debian.org>
2018-10-03 10:12:34 +02:00
Tor Lillqvist fa72f1d1a0 Skip CppunitTest_dbaccess_hsqlbinary_import unless ENABLE_JAVA
Change-Id: Ib31f2bb1234607f0da4806f2e991ecc5d323f9e6
Reviewed-on: https://gerrit.libreoffice.org/56239
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2018-06-21 18:09:16 +02:00
Tamas Bunth 3bb1f0b3a8 Revert HSQLDB related unit tests
Revert changes making HSQLDB related unit tests test Firebird migration.
They should still test the HSQLDB driver.

It reverts part of 159dd28651

Change-Id: If2b9207e95055418bd1dc1dc6e472335de311d1e
Reviewed-on: https://gerrit.libreoffice.org/52873
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-04-14 17:44:48 +02:00
Tamas Bunth 159dd28651 dbaccess: Enable hsql migration by default
Also make Firebird driver not experimental anymore.

With hsql migration enabled, the hsqldb related unit tests can be
reused, because the underlying DBMS is transparent. To achieve that, I
added firebird_sdbc component to hsqldb CppunitTest_* files.

This commit also contains fixes for upcoming bugs while migrating from
hsqldb to firebird, shown by hsqldb related unit tests:

- null values: in case of null values, the setNull method should be used
  instead of nothing. (malformed string otherwise)

Remove DBACCESS_HSQL_MIGRATION environment variable, since migration is
default from now on.

JunitTest_dbaccess_complex was based on HSQLDB. This commit replaces
"if exists" hsql specific solution with firebird specific. Also disable
test for queries with named parameters.

Change-Id: Ieb68f5ad3a11389599c4f268ea4df82a83643b82
Reviewed-on: https://gerrit.libreoffice.org/52008
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-04-07 17:08:26 +02:00
Tamas Bunth 1859b45a08 Do not use hsql binary import test when..
.. --disable-firebird-sdbc is on.

Change-Id: Ie52485d55697579bfa05d0eb62c15d60cc73b68e
Reviewed-on: https://gerrit.libreoffice.org/52181
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-03-31 17:11:36 +02:00
Tamas Bunth 606cf34740 dbahsql: Unit test for binary import
Also fix bugs shown by the unit test

Use boost date/time instead of std, because std::tm cannot handle dates
before 1970.

Change-Id: I7f5dbb3d828a591a4b51c7204dc3bd39fefc42ff
Reviewed-on: https://gerrit.libreoffice.org/51804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-03-29 11:07:51 +02:00
Tamas Bunth 9adc7bdf6d dbahsql: add unit tests for schema import
Change-Id: Ib666562f2d33824188ea3d643e6056f375a4339b
Reviewed-on: https://gerrit.libreoffice.org/51537
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-03-22 10:58:18 +01:00
Tamas Bunth 95bece38ac Add HSQLDB schema import
It can be enabled by initializing the DBACCESS_HSQL_MIGRATION variable.

Create new library "dbahsql" which is responsible for migrating the
embedded hsql database to any database covered by sdbc.

The hsqldb schema is stored in a file named "script" in form of SQL
statements. The SQL statements used by DBMS's differ mostly by the
defined types. Because of that, only the create statements need to be
parsed, alter statements will work (with a little luck) without actually
modifying it.

User / security settings which can occur in the script file (e.g. GRANT
statements) are dropped. Statements starting with SET are also dropped
(they are hsql specific stuff)

Change-Id: I6a22942e8a9a76765f80e50f0ad68f4d72e1ff9d
Reviewed-on: https://gerrit.libreoffice.org/48260
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-01-27 09:30:29 +01:00
David Tardon 8110931480 group java-requiring tests together
Change-Id: Ie4e5422d2a6cb01b4a899ed0982d60fe65c386d7
2017-09-20 09:54:03 +02:00
Caolán McNamara 00657aef09 migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
  MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
  goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
  to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
  mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
  results in inserting the english original so something can be found, now the
  standard fallback of using the english original from the source key is used, so
  partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
   xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
   xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
   content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
      com::sun::star::resource::OfficeResourceLoader
      com::sun::star::resource::XResourceBundleLoader
      com::sun::star::resource::XResourceBundle
    when translating strings via uno apis
      com.sun.star.resource.StringResourceWithLocation
    can continue to be used

Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-21 08:20:50 +01:00
jan Iversen 5a72018557 iOS, convert CPPUnittest to noop
unittest is not supported for iOS
due to the way it is build

Change-Id: I0682c5252231668edc2ec186147b872ef6fcc695
2017-06-23 21:40:12 +02:00
Andrea Gelmini 2e0db91d90 Fix typos
Change-Id: I6b547a864e7a8c8eeedcd7f7c56796e2b3a606d1
Reviewed-on: https://gerrit.libreoffice.org/34807
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-03 07:06:52 +00:00
Armin Le Grand ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Armin Le Grand daf841bff7 screenshots: add dialog test cases for dbaccess
One dialog makes the execution hang, seems to wait for some interaction

Change-Id: I68ef4f9b2a1575a6c70238f82eb27ee87aaae336
2016-08-18 02:39:13 +02:00
Tor Lillqvist d1c9bd13ec CppunitTest_dbaccess_RowSetClones uses HSQLDB and thus Java
Change-Id: Id0295fb45ecdf3472862d2d242a6e9e23da538ad
2015-01-28 01:56:59 +02:00
Lionel Elie Mamane 5d47b83cef fdo#88475 add UnitTest
Change-Id: Icc2b80cfdcb3ff6a8a4fa8d1fb30a8ce9c865c95
2015-01-22 23:53:13 +01:00
Michael Stahl 6d8ab70f1d dbaccess: the PythonTest requires Java for hsqldb
Change-Id: Idaea12aae68ad21ee06f785167cdf1867101ec4b
2014-12-15 22:17:45 +01:00
Bjoern Michaelsen 6dbb6275eb fdo84315: add integration test for basic LibreOffice Base functionality
Thanks to Stephan for helping with the test environment setup:

sbergman@redhat.com:  Do the same "set UserInstallation to user profile dir in
test/user-template" in UnoInProcess's setUp as is done in
test::BootstrapFixtureBase::setUp (unotest/source/cpp/bootstrapfixturebase.cxx)
for CppunitTests.  That way, these tests all use the workdir/unittest/
UserInstallation concurrently, but they at least do not run into the gotcha in
SubstitutePathVariables::SetPredefinedPathVariables
(framework/source/services/substitutepathvars.cxx) to only set the
PREDEFVAR_USERPATH if PATH_EXISTS.

Change-Id: Iad058098a4c69cb567e2d3222af3c7d4ba993271
2014-10-07 16:16:46 +02:00
Lionel Elie Mamane c4f7c5c689 fdo#52076 unittest
Change-Id: Iae10f9728db4c90c4a55ad692b32cddeb7adc48a
2014-09-04 12:06:52 +02:00
Bjoern Michaelsen 78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +01:00
Bjoern Michaelsen 04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
Lionel Elie Mamane 4c64b8851b fixup and enable dbaccess macros_test
Change-Id: Ic5599df7a2ad7f2f3a9f2794b16ef0a4ab698b06
2013-11-09 06:36:46 +01:00
Andrzej J.R. Hunt bdde962f91 Revert "Disable HSQLDB unit test for now."
This reverts commit d4a41ab30c.

This test failed once on one windows TB, but seems to run on my
local machine. Reenabling to verify whether all TBs fail or if
this is limited to one machine.

Change-Id: I40c121833eaef091aaa9cc4a80fefb88fde2cc5f
2013-09-30 17:56:36 +01:00
Andrzej J.R. Hunt d4a41ab30c Disable HSQLDB unit test for now.
Will require some debugging to make work on Windows.

Change-Id: I264e6cdb93c5b9ea89f2a80b332df4e9c879f1d1
2013-09-27 21:05:21 +01:00
Andrzej J.R. Hunt 7c87a5383a Implement firebird/hsqldb performance comparison test.
Change-Id: Iaf28b0fcb04ee713ccae6a593e56653eac6e2eba
2013-09-27 18:09:18 +01:00
Andrzej J.R. Hunt 24320dca85 Implement hsqldb loading test.
Change-Id: I7dc6390b1061585054d1fa435414cae245122a1c
2013-09-27 18:09:18 +01:00
Lionel Elie Mamane 92c53b9d94 unittest for fdo#67685
Change-Id: I44500717109a026d7c71e6494daacbea1f224263
2013-09-27 11:38:08 +02:00
Andrzej J.R. Hunt 65fc052b89 Add simple embedded firebird .odb loading test.
This opens an "empty" firebird-based .odb and tests that it is possible
for the firebird-sdbc driver to open the embedded database.

"empty" denotes that the .odb is marked as using embedded firebird
but doesn't in fact contain any .fdb file within. This is usual state
of a .odb directly after creation using the "New Database" dialog when
the sdbc driver first opens the database.

Change-Id: I83941c05b6328d8419dca49121988640c6f887bc
2013-09-10 08:44:23 +01:00
Michael Stahl 9a7603187e dbaccess: remove Package_inc
Change-Id: I8e6748eef04f25603851a33d049cb9585fa04cc6
2013-05-07 01:41:23 +02:00
Michael Meeks 62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
David Tardon bec67a2e7f deliver all uiconfig files by UIConfig
Change-Id: Ie78b7ce399ba34485146ca7622c59d31f8105d02
Reviewed-on: https://gerrit.libreoffice.org/3229
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:39:16 +00:00
David Tardon ed72983131 rename UI to UIConfig
I plan to use it to deliver all */uiconfig files, not just .ui, as a
preliminary step to get rid of postprocess/packconfig.

Change-Id: Ie7b4434b2f247165e3ab69a4d0c193418720a149
Reviewed-on: https://gerrit.libreoffice.org/3225
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:37:30 +00:00
Zolnai Tamás 7488ad52d7 Add new dialog to Query Design View
In Query Properties Dialog can be set properties like
distinct values and limit.
To open choose Edit\Query Properties.

Steps of implementation:
- Add new slot to Edit menu (menubar.xml): delete the slot of distinct values,
  because it can set in this dialog too
- Separate LimitBox class from limitboxcontroller.cxx (LimitBox.hxx\cxx)
  With it only LimitBox header is included in the dialog source.
- Extend LimitBox class to work with new layout widget (make... and GetOptimalSize())
  and add it to the galde catalog
- Make a class for the new dialog (QueryPropertiesDialog.hxx\cxx) and
  write the .ui file. (querypropertiesdialog.ui)
- Syncronize the two LimitBox (querycontroller.cxx)

Change-Id: Ib84bef5a2ed55030333d6151342b99ff27766538
2013-03-04 19:33:16 +01:00
Tor Lillqvist c29098917a Get rid of (most uses of) GUI
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: https://gerrit.libreoffice.org/1304
Reviewed-by: Peter Foley <pefoley2@verizon.net>
Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-25 17:53:25 +00:00
Markus Mohrhard a05286296b dbaccess' macros_test is still failing in some situations 2012-02-16 00:55:18 +01:00
Markus Mohrhard b97bdba24e finish initial work on the Base test
Base needs the numberformatter to initialize a document
2012-02-12 20:14:56 +01:00
Tor Lillqvist f8d30ec82d Attempt to disable database connectivity for iOS for now 2012-02-06 16:57:40 +02:00
Lionel Elie Mamane b86c6ac65c Disable Adabas UI, too 2012-01-27 06:57:28 +01:00
Tor Lillqvist aca52b3cf6 Revert "Build dbaccess and connectivity only for DESKTOP platforms for now"
Nah, breaks the build for non-DESKTOP platforms anyway, as headers
delivered there are needed elsewhere. So just keep building that stuff
even if it presumably will not be needed on either of the non-DESKTOP
platforms.

This reverts commit 9b4212f14b.
2011-10-26 12:18:11 +03:00
Tor Lillqvist 9b4212f14b Build dbaccess and connectivity only for DESKTOP platforms for now 2011-10-25 13:55:34 +03:00