Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-02-05 | cmocka: Add all_zero() function and test | Andreas Schneider | 1 | -0/+1 | |
Reviewed-by: Joseph Sutton <jsutton@samba.org> | |||||
2024-02-05 | tests: Add tests for assert_memory_equal() | Andreas Schneider | 1 | -0/+9 | |
Reviewed-by: Joseph Sutton <jsutton@samba.org> | |||||
2024-02-03 | Sanitize XML strings. | Jakub Czapiga | 1 | -2/+2 | |
Replace characters with their XML string equivalents to allow for them in the tests and groups names. Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2024-02-03 | Improve c_strreplace implementation | Jakub Czapiga | 1 | -0/+1 | |
Return successfuly if there is nothing to replace. Allow for replacement with superset pattern. Simplified example without fix: c_strreplace("ABCD", "A", "AX") -> "AAAAAA...AAAXBCD" Simplified example with fix: c_strreplace("ABCD", "A", "AX") -> "AXBCD" Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2024-02-02 | tests: Add test for expect_int_in_set_count() | Andreas Schneider | 1 | -0/+1 | |
2024-01-05 | Add unit tests for assert_false() | Eshan Kelkar | 1 | -0/+18 | |
Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2024-01-05 | Add unit tests for assert_true() | Eshan Kelkar | 1 | -0/+18 | |
Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2023-02-01 | cmake: Use C99 and define GNU and POSIX flags directly at source files | Andreas Schneider | 1 | -1/+1 | |
Fixes #50 | |||||
2023-01-29 | tests: Add tests for will_return/mock with ptr and type saftey checking | Andreas Schneider | 1 | -1/+1 | |
2023-01-29 | test: Test assert_ptr_equal and _not_equal macros | Alois Klink | 1 | -0/+9 | |
Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2022-12-01 | cmocka: Only handle exceptions on platforms supporting it | Andreas Schneider | 1 | -1/+4 | |
This also issues a warning during compile time. | |||||
2022-11-28 | tests: Add tests for assert_uint_not_in_set() | Andreas Schneider | 1 | -1/+1 | |
2022-11-28 | tests: Add tests for assert_uint_in_set() | Andreas Schneider | 1 | -1/+1 | |
2022-11-28 | tests: Add tests for assert_not_int_in_set() | Andreas Schneider | 1 | -1/+1 | |
2022-11-28 | tests: Add tests for assert_int_in_set() | Andreas Schneider | 1 | -0/+9 | |
2022-11-28 | tests: Add tests for assert_uint_not_in_range() | Andreas Schneider | 1 | -1/+1 | |
2022-11-28 | tests: Add test for assert_int_not_in_range() | Andreas Schneider | 1 | -1/+1 | |
2022-06-13 | tests: Add negative tests for assert_int_in_range() | Andreas Schneider | 1 | -0/+8 | |
2022-06-13 | tests: Add tests for assert_int_in_range() | Andreas Schneider | 1 | -0/+1 | |
2022-03-13 | tests: Add negative test for assert_uint_not_equal() | Andreas Schneider | 1 | -1/+1 | |
2022-03-13 | tests: Add negative test for assert_uint_equal() | Andreas Schneider | 1 | -1/+1 | |
2022-03-13 | tests: Add negative test for assert_int_not_equal() | Andreas Schneider | 1 | -1/+1 | |
2022-03-13 | tests: Add negative tests for assert_int_equal() | Andreas Schneider | 1 | -0/+8 | |
2022-03-13 | tests: Add test for assert_intequal() | Andreas Schneider | 1 | -0/+1 | |
2022-03-12 | Add a test to reproduce the 'NULL pointer dereference in _function_called' bug. | Wolfram Ladurner | 1 | -1/+3 | |
Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2022-03-11 | Add new feature stop | Carsten Lange | 1 | -1/+11 | |
Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2022-03-02 | tests: The exception handler doesn't work on Windows | Andreas Schneider | 1 | -11/+8 | |
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2022-03-02 | tests: Relax regular expression for test_exception_handler | Andreas Schneider | 1 | -1/+1 | |
2022-02-26 | Add macro for expect_check_count | Johan Stridkvist | 1 | -0/+10 | |
Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2020-10-12 | cmocka: Remove deprecated functions and cmockery legacy support | Andreas Schneider | 1 | -6/+0 | |
2020-10-05 | cmocka: Remove cast in assert_string_(not_)equal macros | Andreas Schneider | 1 | -0/+1 | |
Also add basic tests Fixes #48 | |||||
2020-10-04 | cmocka: add header with version to TAP13 output | Sergey Bronnikov | 1 | -3/+6 | |
Version must be specified in a first line of TAP13 output. See TAP13 specification - https://testanything.org/tap-version-13-specification.html Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2020-10-04 | Fix TAP output for skipped tests | Matthias Schiffer | 1 | -1/+1 | |
According to [1], a skipped test should print "ok" and not "not ok" before "# SKIP". This breaks tests harnesses like the one built into Meson [2]. [1] http://testanything.org/tap-specification.html [2] https://mesonbuild.com/Unit-tests.html | |||||
2020-02-06 | Add group_name in cmprintf_group_finish_standard. | Arnaud Gelas | 1 | -3/+3 | |
When using cmocka_run_group_tests_name, group_name was not printed; which made it complicated to know when one failure occurs. | |||||
2019-11-19 | cmocka: Add new assert macros to compare 2 double given an epsilon. | Arnaud Gelas | 1 | -0/+1 | |
assert_double_equal and assert_double_not_equal Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2019-10-22 | cmake: Create a static cmocka library for testing | Andreas Schneider | 1 | -1/+1 | |
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2019-10-16 | cmake: Make shared lib optional | Arnaud Gelas | 1 | -6/+10 | |
Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2019-03-28 | tests: Add tests for skip filter | Anderson Toshiyuki Sasaki | 1 | -1/+3 | |
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2019-01-22 | include: Add new assert macros to compare 2 floats given an epsilon. | Arnaud Gelas | 1 | -0/+1 | |
assert_float_equal and assert_float_not_equal | |||||
2018-09-27 | cmake: Update AddCMockaTest | Andreas Schneider | 1 | -14/+15 | |
2018-09-26 | tests: Remove left over debug message | Andreas Schneider | 1 | -1/+0 | |
2018-09-25 | cmake: Add -DCMAKE_BUILD_TYPE=UndefinedSanitizer | Andreas Schneider | 1 | -15/+26 | |
2018-09-11 | cmake: Fix linking with -fstack-protector* on Solaris | Andreas Schneider | 1 | -0/+5 | |
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> | |||||
2018-09-10 | cmake: Use modern cmake for buildng the tests | Andreas Schneider | 1 | -6/+1 | |
2018-08-29 | cmake: Don't use CMAKE_SOURCE_DIR | Andreas Schneider | 1 | -1/+1 | |
2018-08-23 | cmake: Also handle Illegal instruction | Andreas Schneider | 1 | -1/+1 | |
This is raised on a -O3 build. | |||||
2018-08-22 | cmake: Add new CompilerCheck.cmake | Andreas Schneider | 1 | -0/+2 | |
2018-06-11 | tests: Add a test to check if wildcards are working | Andreas Schneider | 1 | -1/+2 | |
2018-06-11 | cmocka: Add c_strmatch() function | Andreas Schneider | 1 | -0/+1 | |
2017-08-11 | cmocka: Print the error message of a fixture if it fails | Andreas Schneider | 1 | -2/+2 | |
This adds error information to the output. |