aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-11-19cmocka: Add new assert macros to compare 2 double given an epsilon.Arnaud Gelas5-0/+184
assert_double_equal and assert_double_not_equal Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-11-19cmocka: Fix indentationArnaud Gelas1-2/+2
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-25cmake: Link compile database to source dir for clangdAndreas Schneider2-0/+7
See https://github.com/ycm-core/YouCompleteMe https://github.com/abingham/emacs-ycmd Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22cmake: Fix usage of cmocka with build treeArnaud Gelas3-6/+13
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22cmocka: Cast return to int in _cmocka_run_group_tests()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22Fix MSVC warning on conversion from 'time_t' to 'double'Paolo Teti1-1/+1
Fixes the following MSVC warning: warning C4244: '=': conversion from 'time_t' to 'double', possible loss of data Signed-off-by: Paolo Teti <paolo.teti@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22Fix possible loss of data reported by MSVCPaolo Teti1-1/+1
Fixes the following warning: warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data Signed-off-by: Paolo Teti <paolo.teti@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22cmake: Create a static cmocka library for testingAndreas Schneider2-27/+38
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22gitlab-ci: Set the build type to DebugAndreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-21CI: Attemp to fix MSVC pipelinePaolo Teti1-1/+1
Attemp to fix 'Exit code 0xc0000139' (DLL not found) when running tests. Signed-off-by: Paolo Teti <paolo.teti@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-16cmake: Make shared lib optionalArnaud Gelas7-102/+76
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-16Fix in INSTALL.md cmake required version (i.e. >= 3.5.0)Arnaud Gelas1-1/+1
https://gitlab.com/cmocka/cmocka/issues/33
2019-08-22gitlab-ci: Add a Meson runnerDima Krasner1-0/+15
2019-08-22meson: Build and run unit testsDima Krasner3-0/+35
2019-08-22meson: Initial Meson build system supportDima Krasner1-0/+43
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-08-21cmocka: Fix C4703 build error on UWPmyd73491-1/+1
2019-03-29cmocka: check MALLOC_ALIGNMENT macroJanusz Jankowski1-0/+2
Some compilers already define this macro in standard libary headers, for example GCC for Xtensa Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28Bump version to 1.1.5cmocka-1.1.5Andreas Schneider2-3/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28tests: Add tests for skip filterAnderson Toshiyuki Sasaki2-1/+60
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28cmocka: Add cmocka_set_skip_filter() to skip testsAnderson Toshiyuki Sasaki3-3/+31
The introduced cmocka_set_skip_filter() allows setting a filter for tests to be skipped. It supports the same wildcards allowed for cmocka_set_test_filter() (i.e. '*' or '?'). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28include: Fixed typo in documentationAnderson Toshiyuki Sasaki1-1/+1
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28def: Add missing exports for _assert_float_(not_)equalAndreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28Bump version to 1.1.4cmocka-1.1.4Andreas Schneider2-2/+8
2019-03-27include: Add missing semicolonAndreas Schneider1-1/+1
Fixes #22 Reported-by: Stef van Os Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-12cmake: Fix lib name on WindowsAndreas Schneider1-1/+5
Fixes #19 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-12cmake: Do not link to librt on AndroidAndreas Schneider1-1/+1
Fixes #16 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-12cmake: Disable in source builds the cmake wayAndreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-12include: Fix documentation linksAndreas Schneider1-4/+4
Fixes #17 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-02-25XML output is JUnit XML, not xUnit XML.Richard Bayerle1-2/+2
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-02-19examples: Include stdint.h in simple exampleAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-25gitlab-ci: Add target for MemorySanitizerAndreas Schneider1-0/+18
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-25cmake: Add MemorySanitizer build typeAndreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-25cmocka: Use calloc for allocating memoryAndreas Schneider1-6/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-25tests: Mark state unused in float testAndreas Schneider1-1/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-23include: Change from should to must and add stdint.hAndreas Schneider1-1/+2
Fixes #15 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-23cmake: Add WITH_EXAMPLES optionsAndreas Schneider2-1/+4
This is turned on by default, but you can disable it, if you just package cmocka for an opterating system. Fixes #14 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-23gitlab-ci: Run csbuild for the last 20 commits for force pushAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-22include: Add new assert macros to compare 2 floats given an epsilon.Arnaud Gelas4-0/+170
assert_float_equal and assert_float_not_equal
2019-01-16cmake: Add -Wmissing-field-initializersAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-12-13gitlab-ci: Add builds for VS2017 on WindowsAnderson Toshiyuki Sasaki1-0/+54
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-11-30include: Add a new macro expect_any_always().Ross1-0/+18
Use this macro when ignoring input parameters to a mocked function. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-11-23cmake: Add runtime destination to cmocka installationAnderson Toshiyuki Sasaki1-0/+2
If "RUNTIME DESTINATION" is not provided in install(), the generated *.dll files are not installed in Windows because they are treated as runtime artifacts. Fixes #13 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-11-08coverity: Fix assert modelAndreas Schneider1-8/+32
2018-11-08examples: Fix memory leak in uptime testAndreas Schneider1-0/+2
2018-11-08cmocka: Use string formatAndreas Schneider1-2/+2
2018-11-08cmocka: Fix typoAndreas Schneider1-1/+1
Fixes #11 Thanks to pavelxdd.
2018-11-07gitlab-ci: Add csbuildAndreas Schneider1-0/+31
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-24cmake: Fix doxygen generationAndreas Schneider2-2/+2
Fixes #12 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-11coverity: Fix assert modelAndreas Schneider1-13/+58
2018-10-02cmake: Always build position independent codeAndreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>