John Ralls
1e85d0b115
Add workflow job to generate a coverage report.
...
URI is https://gnucash.github.io/
2023-12-08 14:53:23 -08:00
John Ralls
6834cb5025
Implement coverage option
...
To use pass -DCMAKE_BUILD_TYPE=Debug or Asan -DCOVERAGE=ON and build as
usual, then do ninja lcov-initialize && ninja check && ninja
lcov-collect. The result will be a directory, <Builddir>/Coverage
containing lcov tracefiles, including an aggregate file gnucash.info
which you can use for further processing. It will also report an overall summary.
Note that only C/C++ files are included.
There's one more target, lcov-generate-html, that you can run after
lcov-collect. It will generate a simple website in
<Builddir>/Coverage-HTML showing coverage by source directory (the
directories in <Builddir> have coverage for generated files). Each
directory path is a clickable link to a page that shows coverage for
each source file; the filenames link to a page for each showing which
lines have been exercised.
2023-12-08 14:53:02 -08:00
John Ralls
a3f14759ab
Asan: Make leak and ODR violation reporting CMake options.
...
pass -DLEAKS=ON or -DODR=ON to enable these features. They have an
effect only with CMAKE_BUILD_TYPE=Asan and don't work on Apple because
Apple clang doesn't enable them.
2023-11-25 11:17:14 -08:00
John Ralls
dd0b72cdb5
Fix global array index out of range.
...
Tests must set the account type to avoid errors in xaccAccountOrder.
2023-11-17 15:20:29 -08:00
John Ralls
087f135085
Add coverage option for Asan builds.
2023-11-09 15:06:15 -08:00
Christopher Lam
6940488d2d
recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
...
... for sql use only. xml use assumes they return a const char*.
2023-11-06 14:12:17 -08:00
John Ralls
f67b53a440
Xml backend tests: Use libgnc-backend-xml-utils instead of sources.
...
Every test was rebuilding it except for gnc-backend-xml.cpp from
scratch, no point in that plus the Address Sanitizer needs the
definition of GncBackendXml.
2023-11-02 12:58:55 -07:00
John Ralls
fa119f8d17
Split test other
2023-11-02 12:58:55 -07:00
John Ralls
b9b7a9e009
Add CI job for Asan build.
2023-11-02 12:58:55 -07:00
John Ralls
e17ba3cc00
Fix UAF in xaccFreeSplit.
...
xaccSplitComputeCapGains creates gains_split pointers in both the Cap Gains Split and its Income split to the original split, but the original's gains_split pointer can point to only one of them, the Cap Gains split. When the original split is freed both the Cap Gains split's and its Income split need their gains_split pointers NULLed or when it's the Income split's turn to be freed it will try to deref the dangling pointer.
2023-11-02 12:58:55 -07:00
John Ralls
2234fa433e
Add Asan build type that enables the Address and UB sanitizers.
...
Uses generator statements instead of CMAKE_<TYPE>_FLAGS_ASAN to support multiconfig generators like Xcode.
2023-11-02 12:58:46 -07:00
John Ralls
5e06c8d8a0
Fix NULL dereference in gnc_plugin_page_report_focus_widget.
...
Reported by Michael Hendry in gnucash-user.
2023-11-01 19:54:54 -07:00
Christopher Lam
d617129db8
avoid strlen where possible
...
if testing emptiness, test *str instead.
2023-11-01 22:43:16 +08:00
Kaligula
f30fcc2ac4
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 70.8% (3918 of 5532 strings; 1070 fuzzy)
272 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2023-11-01 05:33:44 +01:00
Wellington Terumi Uemura
daf0dc01d9
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
...
po/pt_BR.po: 93.6% (5183 of 5532 strings; 235 fuzzy)
80 failing checks (1.4%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-11-01 05:33:44 +01:00
Marko Kohtala
3fdcfc44f4
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
...
po/fi.po: 68.5% (3791 of 5532 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/
Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-30 13:04:28 +00:00
Wellington Terumi Uemura
74b0979811
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
...
po/pt_BR.po: 93.1% (5154 of 5532 strings; 247 fuzzy)
80 failing checks (1.4%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-10-30 13:04:27 +00:00
Marko Kohtala
ad15b2db5d
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
...
po/fi.po: 68.3% (3780 of 5532 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/
Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-29 21:44:29 +01:00
Milo Ivir
196f9bf0e1
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 97.0% (5370 of 5532 strings; 61 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2023-10-29 21:44:29 +01:00
Marko Kohtala
71b27c4f07
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
...
po/fi.po: 64.8% (3587 of 5532 strings; 193 fuzzy)
9 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/
Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-28 16:03:22 +00:00
Marko Kohtala
b88211d7d9
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
...
po/fi.po: 64.7% (3580 of 5532 strings; 197 fuzzy)
9 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/
Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-27 00:41:52 +02:00
Zdenko Podobný
77b0870d8c
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 87.4% (4835 of 5532 strings; 168 fuzzy)
20 failing checks (0.3%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-10-27 00:41:52 +02:00
mocsa
24a6419da6
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 69.5% (3847 of 5532 strings; 641 fuzzy)
7 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-10-27 00:41:52 +02:00
Milo Ivir
ded077b258
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 97.0% (5369 of 5532 strings; 62 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2023-10-27 00:41:51 +02:00
Zdenko Podobný
048ad42428
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 85.6% (4736 of 5532 strings; 200 fuzzy)
19 failing checks (0.3%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-10-24 17:04:15 +02:00
Wellington Terumi Uemura
35af0088e8
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
...
po/pt_BR.po: 92.9% (5144 of 5532 strings; 257 fuzzy)
90 failing checks (1.6%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 92.7% (5131 of 5532 strings; 270 fuzzy)
103 failing checks (1.8%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-10-24 17:04:15 +02:00
Ral Hole
790af261c4
Translation update by Ral Hole <ral-hole@outlook.com> using Weblate
...
po/zh_CN.po: 99.1% (5486 of 5532 strings; 42 fuzzy)
16 failing checks (0.2%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: Ral Hole <ral-hole@outlook.com>
2023-10-22 18:21:28 +02:00
Milo Ivir
dd19b4867c
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 97.0% (5368 of 5532 strings; 62 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.0% (5368 of 5532 strings; 62 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.0% (5368 of 5532 strings; 62 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2023-10-22 18:21:28 +02:00
John Ralls
f12c72f10c
Merge Simon Arlott's 'bug-799108-sx-crash' into stable.
2023-10-22 09:18:30 -07:00
Simon Arlott
90c9aaf4cb
Bug 799108 - "Since Last Run" crashes if there are any errors creating a scheduled transaction
...
Pass a creation_errors list to gnc_sx_instance_model_effect_change() so
that errors creating SX can be stored, and then display them.
2023-10-21 20:39:23 +01:00
John Ralls
4592530318
Bug 799099 - Crash when trying to get quotes
...
The comment on gnc_pricedb_add_price says that writing to the
GNCPrice* after calling it will produce interesting results, and
calling gnc_price_commit_edit and g_object_unref both qualify, so
remove those calls and the corresponding gnc_price_begin_edit.
2023-10-20 08:46:57 -07:00
Milo Ivir
5669980589
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 96.8% (5357 of 5532 strings; 70 fuzzy)
4 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2023-10-19 06:10:18 +02:00
Christopher Lam
d25fb50b2c
[gnucash-commands.cpp] plug some char* leaks
2023-10-16 12:06:26 +08:00
John Ralls
8046eb2c08
Merge Sherlock's 'bug-799104' into stable.
2023-10-14 17:29:52 -07:00
Szia Tomi
8b3d0beea7
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-10-14 23:38:56 +02:00
Wellington Terumi Uemura
cedb576979
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
...
po/pt_BR.po: 92.7% (5130 of 5532 strings; 270 fuzzy)
104 failing checks (1.8%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 92.2% (5105 of 5532 strings; 295 fuzzy)
131 failing checks (2.3%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/glossary/pt_BR.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/pt_BR/
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 91.8% (5079 of 5532 strings; 300 fuzzy)
131 failing checks (2.3%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-10-14 23:38:56 +02:00
Sherlock
52f1076b30
Bug 799104 - "Asset Chart" broken
2023-10-13 16:58:54 -07:00
Christopher Lam
73bb340a83
[report-utilities.scm] pull out gnc:dump-transaction
2023-10-13 20:04:27 +08:00
John Ralls
44c278a82c
Fix GncDateEntry date parsing oddities.
...
The intent was always to default to today if the input string isn't
parsable, but two problems prevented that: First,
qof_scan_date_internal didn't check the return value of strptime and
return FALSE if it failed and second gnc_date_edit_get_date_internal
would unnecessarily munge a valid struct tm from gnc_tm_get_today_neutral.
2023-10-12 15:51:35 -07:00
Szia Tomi
55ab2a1cf2
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 69.3% (3838 of 5532 strings; 644 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-10-11 21:00:52 +00:00
mocsa
a1ebf6fdaf
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 69.3% (3838 of 5532 strings; 644 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 69.3% (3838 of 5532 strings; 644 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-10-11 21:00:51 +00:00
Szia Tomi
431ae901fd
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 69.2% (3833 of 5532 strings; 646 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-10-11 21:00:50 +00:00
Giuseppe Foti
6063403295
Translation update by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate
...
po/it.po: 100.0% (5532 of 5532 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/
Co-authored-by: Giuseppe Foti <foti.giuseppe@gmail.com>
2023-10-11 21:00:46 +00:00
Zdenko Podobný
98054a9b31
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 83.4% (4616 of 5532 strings; 242 fuzzy)
17 failing checks (0.3%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-10-07 14:11:18 +02:00
John Ralls
fdfad6c8d6
Merge Simon Arlott's 'use-default-python-version' into stable.
2023-10-05 15:08:09 -07:00
Simon Arlott
3782eed567
Use the default version of Python 3
...
Python scripts that run with the default version of Python 3 by executing
with /usr/bin/python3 that try to import gnucash can't find it if it has
been built for a different version.
Instead of using other installed versions of Python 3 that happen to be
present, default to using the default "unversioned" version.
It doesn't look like CMake are going to fix the default behaviour, so every
project has to do this:
https://gitlab.kitware.com/cmake/cmake/-/issues/24878
https://gitlab.kitware.com/cmake/cmake/-/issues/24126
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8287
This is only supported on CMake 3.20 or newer, so users of older versions
will still get the broken behaviour.
Use the newer default Python3_FIND_STRATEGY=LOCATION (CMP0094).
2023-10-05 20:22:25 +01:00
Christian Wehling
9eacf34c89
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 99.9% (5527 of 5532 strings; 2 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2023-10-05 17:10:24 +02:00
KULDIP PIPALIYA
ba3b0ef0f2
Translation update by KULDIP PIPALIYA <kuldipem@gmail.com> using Weblate
...
po/gu.po: 49.4% (2734 of 5532 strings; 1874 fuzzy)
773 failing checks (13.9%)
Translation: GnuCash/Program (Gujarati)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/gu/
Co-authored-by: KULDIP PIPALIYA <kuldipem@gmail.com>
2023-10-05 17:10:24 +02:00
mocsa
9a241ea9d6
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 69.2% (3833 of 5532 strings; 646 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-10-03 21:19:28 +00:00
Christian Wehling
c5ea7076c9
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 99.9% (5527 of 5532 strings; 2 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2023-10-03 21:19:28 +00:00