Commit Graph

46 Commits

Author SHA1 Message Date
Vitalii Koshura 3558d444d6
Fix permissions of the files installed by DEB package
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-03-30 00:32:17 +01:00
Vitalii Koshura 00dc490705
[Linux][CI] Fix building DEB and RPM packages.
This PR contains the following changes:

- Fix installation of translations.
- Put icons to the correct location.
- Run boinc-client service after package installation.
- Add ca-certificates package dependency.
- Create link to the system ca certificates file during installation.
- Create /etc/boinc-client folder if not exists.
- Set permissions to the data directory. Create configuration files (and symbolic links to them) if not exist.
- Add X11 config file. Fix boinc.conf file installation.
- Add current user to the boinc group.
- Add boinc user to the video and render groups.
- Create boinc user and boinc group when installing the package.
- Put postinst script to the package.
- Add integration tests.

This PR fixes the following issues: #5324, #5325, #5335, #5431.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-02-27 02:51:35 +01:00
Vitalii Koshura 705b55e1f8
Add linux packaging testing CI
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-12-20 21:48:33 +03:00
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
Hristo Georgiev c7b887d38f Canonicalize URLs to lower case 2022-12-02 21:06:05 +02:00
barton26 9e5ff22dfd
Merge branch 'BOINC:master' into spelling 2021-10-11 03:55:52 -04:00
Vitalii Koshura acb7581cd7
Merge pull request #4532 from barton2526/isNone
Use `is None` instead of `== None`
2021-10-08 19:02:16 +02:00
barton26 0a6a48759d Sched + Tests + Misc typos 2021-10-06 14:42:17 -04:00
barton26 d22ed53f6a Remove semicolons in python code 2021-10-01 00:23:26 -04:00
barton26 092e8bcd99 Use `is None` instead of `== None` 2021-09-30 17:07:53 -04:00
Tal Regev 4af3f0dd72 Add linux report CI 2021-08-02 18:57:17 +03:00
David Anderson c7602410b2
Merge pull request #4294 from AenBleidd/lib_shmem_test
Add test class for shmem library.
2021-03-29 18:16:10 -07:00
David Anderson b7c32cf3f9
Merge pull request #4280 from AenBleidd/vko_add_codecov_action_to_ci_yml
[Codecov] Use action to upload coverage report
2021-03-29 17:01:59 -07:00
Vitalii Koshura 96de335b3c
[Codecov] Use action to upload coverage report
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2021-03-30 01:03:08 +02:00
Vitalii Koshura 081899b70b
Merge pull request #4266 from hectorespert/lib_synch_test
Add test class for synch library.
2021-03-30 00:07:41 +02:00
Vitalii Koshura 731bf24573
[UnitTest] Add shmem unit-tests to windows
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2021-03-30 00:02:52 +02:00
Hector Espert bda5e7ee8f
Include Boinc Windows library 2021-03-29 20:27:01 +02:00
Hector Espert c7975e5f59
Merge branch 'master' into lib_shmem_test 2021-03-29 20:16:31 +02:00
Hector Espert bb45dca1a2
Fix license header 2021-03-29 20:15:44 +02:00
Vitalii Koshura 9b1b528580
[Windows] Fix md5 unit tests
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2021-03-22 11:48:39 +01:00
Hector Espert ec8c11a108
Run test_shmem.cpp only in unix platforms 2021-03-17 19:55:27 +01:00
Hector Espert d0330c9ba2
Run test_synch.cpp only in unix platforms 2021-03-17 19:53:43 +01:00
Hector Espert ccbe7c4de5 Add test class for synch library. 2021-03-14 19:15:09 +01:00
Hector Espert 69d1f30809 Add test class for shmem library. 2021-03-14 18:57:31 +01:00
Hector Espert 482fa5f170 Add test class for md5 library using Google test suite. 2021-02-12 12:59:10 +01:00
Christian Beer f0a52e1742
Merge pull request #4165 from hectorespert/lib_parse_tests
Add xml parser test
2021-02-09 16:48:14 +01:00
Hector Espert 306dbf6da2 Add xml parser test to run as a unit test 2021-02-04 13:48:23 +01:00
Hector Espert 95433504c0 Add tests for util lib 2021-02-02 19:28:51 +01:00
Hector Espert c35ce74553 Add test_util tests file 2021-02-02 19:03:32 +01:00
Hector Espert 6b104a4924 Add lib_base64 testcases 2021-01-12 18:28:13 +01:00
Hector Espert 3e5b6c6423 Test base64 library 2021-01-12 17:52:10 +01:00
Hristo Georgiev 74d75795d0 Merge branch 'master' into update-deprecated-py-syntax 2020-10-30 18:38:45 +00:00
Vitalii Koshura c799658363
[VS2019][Windows] Enable unit tests
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-06-29 23:39:49 +02:00
Hristo Georgiev cda1559ed7 Add missing `self` argument to `read_cpu_time_file`. 2020-05-16 11:09:09 +01:00
Hristo Georgiev 5bd1394a64 Update deprecated Python syntax and func references (still Python v2 compatible). 2020-05-16 10:43:49 +01:00
Vitalii Koshura 5fc277d47d
[Codecov] Fix uploading CodeCov reports
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-03-27 12:48:06 +01:00
Keith Uplinger 4928cc9623 Fix to xml_unescape function for multiple escape values.
Added unit tests for parse.cpp to prove xml_unescape is working properly.
2019-05-29 15:02:36 -05:00
Keith Uplinger be63e62ede Tests: Get unit tests for url.cpp to 100% coverage. 2019-05-28 21:52:01 -05:00
Christian Beer e80e68f9f5 Tests: more unit tests for str_util.cpp 2019-05-08 16:59:27 +02:00
Christian Beer ae829e4ecf Tests: more unit tests for str_util.cpp
Should now cover all cases for testable functions in this file.
2019-05-06 23:13:42 +02:00
Christian Beer db57e0f473 Tests: Add unit tests for str_util.cpp
Changed ASSERT_* calls to EXPECT_* as the former aborts the testrun immediately and the latter will run the remaining tests and mark the run as failed in the end.
The remaining functions either don't need testing or need the googlemock framework to do proper testing.
2019-05-04 20:13:51 +02:00
Christian Beer 1cff4939b8 Tests: tweak test build script
Do a rebuild from scratch only if requested. This allows fast local testing of new or changes test cases.
Don't need to call gcov ourselves as this is done by codecov too.
2019-04-27 16:46:50 +02:00
Christian Beer db60c1ea7a Tests: enable coverage processing 2019-04-20 19:03:12 +02:00
Christian Beer 65096902c1 Tests: adjust mysql library detection for Travis CI Ubuntu image 2019-04-20 13:50:22 +02:00
Christian Beer 6dbf55fd9a Tests: add unit testing framework using googletest
* enable coverage reports from gcc and disable optimizations via option to configure
* install googletest library into buildcache
* script to compile and run unit tests using cmake
* first set of unit tests originaly contributed by Keith Uplinger

There are several hardcoded paths and assumptions made in order to get this working on Travis CI. New tooling is using cmake for cross platform builds and as such is not easy to use with an autotools based system.
It's not ideal but better than nothing.
2019-04-20 13:30:03 +02:00
Christian Beer 231f1b997e Test: Move old test code
Keep it around for reference when designing new tests. Added a readme so new contributors are not confused.
2019-04-13 14:57:23 +02:00