Commit Graph

31 Commits

Author SHA1 Message Date
Vitalii Koshura 3be93daff3
unittests: revert some changes to fix unit tests
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-09-10 04:11:47 +02:00
Vitalii Koshura 1ad881d97d
fix unittests
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-09-10 03:43:10 +02:00
Vitalii Koshura c0f52701ce
libboinc, unittests: change strcpy to strncpy and sprintf to snprintf
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2024-09-10 02:55:54 +02: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
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
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
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
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 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