Commit Graph

37 Commits

Author SHA1 Message Date
matt335672
37d2c2d41b
Merge pull request #3037 from matt335672/update_cppcheck
Update cppcheck and astyle versions
2024-09-04 17:20:55 +01:00
matt335672
82c95faaa9 Allow a cppcheck check_level to be specified
Version 2.14.0 of cppcheck generates errors relating to the
check level (e.g.):-

    common/base64.c:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

This does not happen with the same sources (commit
f781962a55) under 2.13.0.

This PR disables the warnings above for 2.14.0, but also allows a '-f'
argument to be passed in to request an exhaustive test. This could be used
(for example) before a major release. An exhaustive test takes a *lot*
longer. The first run with a git runner was around an hour.

The --check-level=flag was only added for 2.11.0, and so this now needs
a version check.
2024-09-02 15:36:50 +01:00
matt335672
af22422260 Make scripts/install_cppcheck.sh shellcheck-compatible 2024-09-02 15:36:50 +01:00
matt335672
bc3f0e63f6 Update scripts/install_cppcheck.sh for v2.15.0
Remove the setting of CPPFLAGS for cppcheck v2.15.0 as this
upsets the setting of FILESDIR
2024-09-02 15:27:34 +01:00
Koichiro Iwao
72ede776ed x264: add CI test 2024-08-24 22:30:30 +09:00
matt335672
c0a13e4471 Add additional dependency for configure for cppcheck CI 2024-08-15 11:48:23 +01:00
matt335672
2be49f3d73 Update CI dependencies
The xrdp-genkeymap utility now requires the libxkbfile-dev
package (or equivalent) to be able to log the setxkbmap
command used to create a keymap file
2024-05-24 16:33:08 +01:00
matt335672
430e980c9c Add --enable-ibus to github CI 2024-05-05 10:44:19 +08:00
matt335672
b9fd19e6b5 Remove hard-coded version from scripts/run_astyle.sh
This script now works the same way as cppcheck. The version to
be used is specified once in the github CI action
2024-02-12 10:31:49 +00:00
Koichiro Iwao
b8f0094603 Simplify cloning astyle source 2024-02-08 21:17:03 +09:00
Koichiro Iwao
b39c12f351 Update astyle to 3.4.12
as astyle 3.1 is no longer available in the latest FreeBSD.

Also, astyle upstream repository has been moved to GitLab. Switched git
to obtain astyle source.

https://gitlab.com/saalen/astyle
2024-02-08 15:34:17 +09:00
firewave
8c214280d3 bumped Cppcheck to 2.12.1
- build Cppcheck with matchcompiler for improved performance
- build Cppcheck with Boost for improved ValueFlow performance
2023-10-17 15:14:36 +02:00
firewave
f687174af1 provide more includes to Cppcheck
- added (temporary) suppression of Cppcheck `shiftTooManyBits` false positives in `libxrdp/xrdp_mppc_enc.c`
- added (temporary) suppression of Cppcheck `uninitMemberVar` true positives in `ulalaca/ulalaca.cpp` until fixes land downstream
- fix Cppcheck `nullPointerRedundantCheck` in `sesman/chansrv/clipboard.c`
- fix Cppcheck `syntaxError` in `fontutils/mkfv1.c` because it doesn't see the `freetype/fterrors.h` header / removed astyle workaround
2023-10-17 15:14:36 +02:00
firewave
c37ce6fa47 Cppcheck 2.8 removed the dependency on z3 2023-09-04 10:01:09 +02:00
matt335672
1ac6206af6 Use all available CPUs to build cppcheck 2023-06-23 15:30:24 +01:00
matt335672
d77b0b3b9d Bump cppcheck to v2.11
This fixes the following errors:-

sesman/tools/authtest.c:64:14: error: syntax error [syntaxError]
    g_printf("xrdp auth module tester v" PACKAGE_VERSION "\n");
             ^
sesman/tools/sesrun.c:165:14: error: syntax error [syntaxError]
    g_printf("xrdp session starter v" PACKAGE_VERSION "\n");
             ^
vrplayer/decoder.h:35:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
vrplayer/playaudio.h:45:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
vrplayer/dlgabout.h:22:13: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    private slots:
            ^
vrplayer/playvideo.h:49:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
Additionally, cppcheck now makes use of all available CPUs
2023-06-23 15:12:51 +01:00
matt335672
41ae2f4efa Fix (again) broken 32-bit CI 2023-05-15 11:17:14 +01:00
Koichiro IWAO
3b62bf1df2 CI: skip running astyle on third_party sources 2023-04-04 12:08:32 +09:00
Koichiro IWAO
cd1c479069 CI: skip running cppcheck on third_party sources 2023-04-03 15:51:10 +09:00
Nexarian
d3be110ffc Add unit test parameter for more coverage. 2023-02-11 00:28:30 -05:00
Nexarian
ddba7a317a Add core cmocka framework
Initial integration with cmocka.

The intent is to first apply this to the xrdp unit tests, but until
something uses it directly we'll hold off on updating the Makefile.
2023-02-06 22:47:04 -05:00
matt335672
5cbf0cb5ac Update legacy OS from 18.04 to 20.04
Since Ubuntu 20.04 supports less i386 functionality than 18.04,
it has been necessary to use a smaller set of compile options,
resulting in less compile coverage.
2022-10-19 17:48:42 +01:00
matt335672
02513dbd4b Add freetype2 to CI
The freetype2 library can now be used to create fv1 fonts. This
library is added to the 'max features' CI builds to pick up any
regressions.
2022-09-06 10:32:40 +01:00
a1346054
59f8d9fe07
fix some shellcheck warnings 2022-09-03 02:05:08 +00:00
matt335672
baf62457a3 Move to cppcheck 2.7 and bump default threads to 2 2022-02-07 09:31:34 +00:00
matt335672
f69bcda8c7 32-bit CI build process : Remove some 64-bit packages 2021-09-03 12:12:29 +01:00
matt335672
aa43a005e3 Add --with-imlib2 to i386 CI 2021-09-01 10:09:30 +01:00
matt335672
2d123d519d Add imlib2 to CI 2021-09-01 10:09:30 +01:00
matt335672
341a32581c CI: Update package lists before adding packages 2021-05-28 10:47:18 +01:00
Alexandre Quesnel
f8652e3a0f Add checking the code formatting with astyle during CI builds 2021-05-08 16:53:32 +00:00
Alexandre Quesnel
ccd9ae8c55 Fix argument defaulting in install_xrdp_build_dependencies_with_apt.sh 2021-04-14 04:41:54 +00:00
Alexandre Quesnel
09174ccd4d Adding g_strnjoin() with units tests 2021-04-14 04:41:53 +00:00
matt335672
78e4d9b84d Remove openssl:i386 2021-03-19 12:36:42 +00:00
matt335672
8ab3a2e9f8 Bumped cppcheck version to 2.3
addressed resulting warnings
2020-12-31 11:27:14 +00:00
Alexandre Quesnel
353e11caba Adding CI build using github actions 2020-11-17 05:49:39 +00:00
matt335672
a57c68f55e Implement changes to support cppcheck 2.x 2020-06-19 11:06:41 +01:00
matt335672
2faf98ca61 Add cppcheck to travis-ci 2020-03-03 10:33:17 +00:00