Commit graph

86 commits

Author SHA1 Message Date
Ashod Nakashian
6de46d746e wsd: test: better run_unit.sh
Unfotunately, if our custom test driver run_unit.sh
fails, the report isn't generated at all.

So, instead, we have to go back to parsing the trs
file to detect success and failure.

We now make fast-fail an option instead.

Also fixes a typo in run_unit_standalone.sh.

Change-Id: I337c2a3edceda01df5f9c13c83eb176930b07e34
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 09:20:32 +02:00
Cosmin Humeniuc
1d25188821 Adapt locorestrings.py for Python 3
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: I0328dc4cb97aa143fc2911255817b7cc636b5bec
2023-10-03 10:58:39 +02:00
Ashod Nakashian
4407ac9136 wsd: test: improved single-test runner
The test now runs as many times as requested
and doesn't stop on first failure. Instead,
it reports the number of passing vs failing
runs.

Also simplifies the detection of the test
result by using the exit code instead
of grepping the output file.

Change-Id: Ie458b2963411632d566cd87d2dfb9137044d2b4b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 08:58:39 +02:00
Miklos Vajna
fb5aab4693 scripts: add a simple script to invoke a single unit test
And also allow automatic re-trying to decide if this is a reproducible
failure or an unstable test.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I254d83cc1acc6b80ec3978e26e5fd64e676ff2a9
2023-09-22 16:01:52 +02:00
Caolán McNamara
94b4859bb6 add a script to make getting a flamegraph of a specific instance less fraught
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I17409bd96f1cccdc84a4aa5f0e372f1b1181ce59
2023-09-15 12:58:35 +02:00
Aron Budea
a1a6817e4d unocommands.py: Treat JS/TS files as UTF-8
Otherwise eg. non-ASCII shortcuts appearing in files can cause
failures like this.

Traceback (most recent call last):
  File ".../rpmbuild/BUILD/coolwsd-23.05.2.2snapshot/scripts/unocommands.py", line 454, in <module>
    toolbarCommands = extractToolbarCommands(onlineDir)
  File ".../rpmbuild/BUILD/coolwsd-23.05.2.2snapshot/scripts/unocommands.py", line 163, in extractToolbarCommands
    for line in f:
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]

Encountered after 1a2500c8d3.

This is not ASCII in browser/src/control/Control.NotebookbarWriter.js:
`'accessibility': { focusBack: true,     combination: 'AI',      de: 'ÖI' }

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I72aac2809530c14b9440f73e5072db17770f438a
2023-08-17 11:55:34 +02:00
Andras Timar
6ae1ba9c48 Poco: build for Android 2023-07-02 10:29:16 +02:00
Andras Timar
6696f2c515 android: only static zstd libs are needed
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic460c18c9d5ae72f4d38b90260a2e8b8db8e8289
2023-07-01 18:14:08 +02:00
Pedro Pinto Silva
261e8cac30 Scripts: Add parser used in forum for monthly leaderboard
Used for translators leader-board in the forum

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I04a557c3beaa109b0ab010ca32ec749b585d07cc
2023-06-29 12:55:35 +02:00
Dennis Francis
8e05061f9b browser: convert calc header controls to TS
Control.Header.js -> Control.Header.ts
Control.ColumnHeader.js -> Control.ColumnHeader.ts
Control.RowHeader.js -> Control.RowHeader.ts
Control.CornerHeader.js -> Control.CornerHeader.ts

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0f111cf715171d91660c0672b2473df89f83b0d
2023-01-18 16:45:02 +05:30
Tor Lillqvist
a3b0eda252 Give an example how to pass the zstd directory options to the configure script
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I23a38265f64d037480cb9b17caa8ce4a660f62a6
2022-11-02 12:12:11 +00:00
Tor Lillqvist
3862efd37e Don't recommend using /opt/libreoffice
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4cb27eaedf1af6bf2cdf1b21b43cc65d05a344e2
2022-11-02 12:12:11 +00:00
Tor Lillqvist
6656bc8ac3 iOS is only 64-bit since long
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ifa0aa1c1c129a42e8d0c70c34b12c94e371ed484
2022-11-02 12:12:11 +00:00
Michael Meeks
4d02d593b5 zstd: build for iOS.
Change-Id: Ifa2df0a0f9cf5bdfad5a513a37b64632b3e0a84f
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-11-02 12:09:53 +01:00
Michael Meeks
ccc2c4beb9 Simplify building multiple zstds for Android.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I58f31f3ff7be19e4770accd88a7520cc112b1e47
2022-11-02 12:09:53 +01:00
Michael Meeks
242a7c6b0a Very simple HA cluster testing script.
Change-Id: I52afc3b5889343913ddfd4c27d42925654ca9661
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-09-14 10:31:22 +01:00
Andras Timar
c274352d6b A new attept to create list of Collabora Online translators properly
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib83025dd34ef3ebb75afe3e3d81a298c86302a7c
2021-11-26 13:03:24 +01:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Mert Tumer
81f61c8073 rename: loolforkit -> coolforkit
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I1de688dce4b068bff35451604486b72ecc8c91d4
2021-11-16 21:02:24 +01:00
Henry Castro
5864481c13 scripts: rename loleaflet -> browser
Change-Id: I108162981aa66a804a855a18f45f7369c20edfe0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Gleb Popov
6622053557 scripts/refresh-git-hooks: Create hooks dir before making links.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I9ceb7894c0b670bf17cb89e0397b994b5e227ef7
2021-05-10 09:19:13 +02:00
Andras Timar
335d41587c Updated UNO command translations (co-2021)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4bd4bc7eae097c5b2b1bccdfebe191c4f595de9e
2021-04-18 11:18:34 +02:00
Szymon Kłos
a47773954f Update unocommands for Control.NotebookbarDraw.js
Change-Id: I575fc13e4db5860bdeca7093bbc64c85b15a63cb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-01 13:58:14 +03:00
Szymon Kłos
ac0b14ea81 update unocommands script: don't replace characters
use original names as it is required for pulling translations

Change-Id: I0b679d0802afcfacc7db8cb56a08254749811bc1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-18 09:16:35 +01:00
umutbayramoglu
d08fda9749 Remove unused variables
Signed-off-by: umutbayramoglu <umut265@gmail.com>
Change-Id: I7c2565a01605846201cb4a35564eb52b52491fe8
2021-02-11 02:10:34 +03:00
Szymon Kłos
3919d19b5d Support special characters in uno translations
Some uno commands have '.' or '-' in the name.
eg. .uno:FontworkShapeType.fontwork-inflate

Change-Id: I027aa3b6302280101c0f7cb51ef9809d023ea91d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Szymon Kłos
3d0000c09a Check for _UNO also in MobileWizardBuilder
Change-Id: I3ab70770a79acc1c4e107b83474fdd96c7ffa3ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Jan Holesovsky
efd9b93652 Trivial script to find unused functions in JavaScript
I haven't found any more advanced approach to finding unused JS
functions, but this seems to produce at least some results, so better
than nothing.

There is nothing new to remove though, the last round of cleanup has
removed what was there to remove.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: If39fecb7781cc78b30cb95da354c71d3547b7ae7
2021-02-03 13:54:46 +01:00
Andras Timar
9c10822f7d _UNO() takes precedence, it will become the actual label
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0e25ebc289179f80eb4231c218feb9af554ec334
2021-01-06 13:54:01 +01:00
Gleb Popov
fed8ed59a4 Use portable /usr/bin/env bash shebang, instead of /bin/bash one.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I196c8747d9c88991bd0352849113748f8ea1294d
2020-12-17 11:52:18 +00:00
Muhammet Kara
0b9648445c Translator credits: Space after comma and tabs-to-spaces
Change-Id: I412b035cf25f7ec40164d0d187881177c7de0f4e
Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-11-01 23:00:15 +03:00
kuesji koesnu
8e53541734 edited behaviour: if you pass csv input file with --csv parameter you get output in single line with comma seperated format.
Signed-off-by: kuesji koesnu <kuesji@koesnu.com>
Change-Id: I4ed2299f917aa3bc899d9d2c62ffe7926e65498c
2020-11-01 22:14:20 +03:00
kuesji koesnu
591a5ac9b2 added --csv file argument for taking author list from comma seperated format
removed mail addresses from author list

Signed-off-by: kuesji koesnu <kuesji@koesnu.com>
Change-Id: I369794dfb0db978c890b7691e4101f8fdf316302
2020-11-01 22:14:20 +03:00
kuesji koesnu
668eabffa4 this script searchs "Translated using Weblate" message in commit log and generates list of translators.
Signed-off-by: kuesji koesnu <kuesji@koesnu.com>
Change-Id: If6b1ae1dd9de66138dff0c35a1f6ea98e61c12ca
2020-11-01 11:58:14 +03:00
Mücahid Aydin
e9ea83efa5 pep8 coding style conformance for scripts/unocommands.py
Change-Id: Ic395a0692a808bc8519a05baf9cdd669d94a0fc4
2020-10-15 12:44:54 +03:00
bgbenzer
5f482e57fd pep8 coding style conformance for scripts/untranslated.py
Change-Id: I4a3d8db37ba013b581eeec8fff8fba6fe1bcc966
2020-10-12 17:05:32 +03:00
corleone77
6ce6e0fbb9 locorestrings style fixed
Change-Id: If33d97ab9ddc33f5d674ddcc53db884338eb83c6
2020-10-12 12:06:09 +02:00
Miklos Vajna
9619517a10 git hooks: enable them automatically during 'make'
So one can't forget enabling them.

Change-Id: Icb595e9d0711227eaa6f11c1a9ff87f2c361e0bb
2020-10-07 12:54:47 +02:00
Andras Timar
0002fdfd6c fix license headers
Change-Id: I8623770b32d278a45357dc7f757fabfadd2b4af7
2020-10-01 11:56:43 +02:00
Tor Lillqvist
728d56aa05 Don't use just the basename in the usage help message
That is counter-productive. Use the command name as used by the user
to run the script.

Change-Id: I11b082375db8d8184543cead912cbc556f3695e2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102041
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-09-04 12:46:42 +02:00
Szymon Kłos
9dd57f8fe1 notebookbar: customize Insert tab in Writer
Change-Id: I531854b4c7361fe5802a64016886feab5cda8979
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100177
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-08-06 08:16:19 +02:00
Andras Timar
000c5a9b41 Add more source files to scripts/unocommands.py
Change-Id: I395f1fdd761f94018c75fa5bf48d64aff0335c27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96940
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-24 09:08:25 +02:00
Aron Budea
3c531c9adf Add translations for Page Setup & co
Translations for strings added in
53e6b0d07e

Change-Id: I319f519b897dcfc279e3c493a793b58b8b47a930
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87567
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2020-01-28 09:09:52 +01:00
Aron Budea
185bb77eee Add correct string and translations for Function Wizard
Change-Id: Ia9d8f2b102bc405d9eb9ef6364a00fc46c5798b7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87155
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-01-24 21:34:01 +01:00
Andras Timar
bc608f41d5 With switch to Weblate, downloadpootle.sh script became obsolete
Change-Id: I85447800a2547d2e9142b59ce60ee3c242e7234d
2019-12-13 12:29:31 +01:00
Tamás Zolnai
7041d5c5b0 Update conext menu code to handle Spelling Popup
* Use unique IDs for sub menus.
* Handle uno command's parameter.
* When there is any parameter, we use the menu text.
* Avoid to enable FontDialog on other conext menus
* Introduce the command ".uno:None" to indicate that the
menu item can't be executed.
* Whitelisted spelling context menu's uno commands.
* Add a black list in unocommands.py to list those uno
commands which have no text in xcu file. In this case,
we can use the text sent in the menu structure.

Change-Id: Ie84fcb7d6c7a2f4cd50c666dbcd8c77cf42731de
Reviewed-on: https://gerrit.libreoffice.org/83606
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-11-24 14:12:30 +01:00
Michael Weghorn
c1e04e4069 scripts/unocommands.py: Switch to python3
Files not explicitly opened in binary mode are text files and thus
expect a 'str' arg for their write() method.

Python 2 is nearing its EOL and e.g. Debian has already
removed the python2-based 'python-polib' package previously
used here from its testing distribution.

I checked that running the commands

    ./scripts/unocommands.py --update . ../libreoffice
    ./scripts/unocommands.py --translate . ../libreoffice/translations
    ./scripts/unocommands.py --check .

still yields the same results as previously.

Change-Id: I39e1785d3c78416009420dd4c2be58bd1c3647c3
Reviewed-on: https://gerrit.libreoffice.org/81422
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Michael Stahl <michael.stahl@cib.de>
2019-10-24 14:07:47 +02:00
George
360d5a0956 added server uptime field to admin console
Change-Id: Id23fee1299b87095f186ce7aaa8c2d2e0f3cef52
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2019-07-19 21:14:01 +01:00
Andras Timar
8b3d548747 force overwrite of ios-*.po when downloading from Pootle
Change-Id: Ib0184ebe1b7485af819979acf4df268a564772b8
Reviewed-on: https://gerrit.libreoffice.org/74437
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-06-20 12:12:28 +02:00
Michael Meeks
4959b3b21c perftrace: fix time parsing issue.
Change-Id: If0987454e3aa747aa476fa4e0ec8070a95e92867
2019-04-19 23:51:26 +01:00