summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2018-10-02cmake: Only check for -Wno-gnu-zero-variadic-macro-arguments with clangAndreas Schneider1-1/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-02examples: uptime: include stdint.h before cmocka.hJoel Carlson1-0/+1
Fixes a build error encountered on one MIPS64 toolchain about uintptr_t being declared twice, first by cmocka.h and then later by the toolchains stdint.h. Fixes #7 Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-27gitlab-ci: Use a toolchain file for mipsAndreas Schneider2-2/+22
2018-09-27gitlab-ci: Report errors on debianAndreas Schneider1-2/+3
2018-09-27cmake: Use cmocka-static as the static namecmocka-1.1.3Andreas Schneider1-1/+1
2018-09-27Bump version to 1.1.3Andreas Schneider2-2/+8
2018-09-27gitlab-ci: Get mingw errorsAndreas Schneider1-6/+8
2018-09-27exmaples: Use add_cmocka_test and set environment for testsAndreas Schneider2-87/+54
2018-09-27examples: Move mock example to own directoryAndreas Schneider13-5/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-27exmaples: Remove examples which have issues on some platformsAndreas Schneider8-434/+12
We should provide better examples.
2018-09-27cmake: Always include AddCMockaTestAndreas Schneider1-1/+1
2018-09-27cmake: Update AddCMockaTestAndreas Schneider4-30/+125
2018-09-27cmake: Fix CMOCKA_DLL_PATH for WindowsAndreas Schneider2-19/+1
2018-09-27cmake: Specify ARCHIVE DESTINATION for cmocka library on WindowsAndreas Schneider1-0/+2
This is needed to correctly install the dll on Windows
2018-09-27cmake: Only install static lib if requestedAndreas Schneider2-12/+18
2018-09-27cmake: Use cmocka as the shared library nameAndreas Schneider1-16/+1
cmocka_static as the static library name
2018-09-26cmocka: Silence clang analyzer warningAndreas Schneider1-2/+6
It has no way to mark things as false postivies or teach it that things abort. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>