aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2020-10-12cmocka: Remove deprecated functions and cmockery legacy supportAndreas Schneider1-6/+0
2020-10-05cmocka: Remove cast in assert_string_(not_)equal macrosAndreas Schneider1-0/+1
Also add basic tests Fixes #48
2020-10-04cmocka: add header with version to TAP13 outputSergey Bronnikov1-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-04Fix TAP output for skipped testsMatthias Schiffer1-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-06Add group_name in cmprintf_group_finish_standard.Arnaud Gelas1-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-19cmocka: Add new assert macros to compare 2 double given an epsilon.Arnaud Gelas1-0/+1
assert_double_equal and assert_double_not_equal Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-22cmake: Create a static cmocka library for testingAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-10-16cmake: Make shared lib optionalArnaud Gelas1-6/+10
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-03-28tests: Add tests for skip filterAnderson Toshiyuki Sasaki1-1/+3
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-22include: Add new assert macros to compare 2 floats given an epsilon.Arnaud Gelas1-0/+1
assert_float_equal and assert_float_not_equal
2018-09-27cmake: Update AddCMockaTestAndreas Schneider1-14/+15
2018-09-26tests: Remove left over debug messageAndreas Schneider1-1/+0
2018-09-25cmake: Add -DCMAKE_BUILD_TYPE=UndefinedSanitizerAndreas Schneider1-15/+26
2018-09-11cmake: Fix linking with -fstack-protector* on SolarisAndreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-10cmake: Use modern cmake for buildng the testsAndreas Schneider1-6/+1
2018-08-29cmake: Don't use CMAKE_SOURCE_DIRAndreas Schneider1-1/+1
2018-08-23cmake: Also handle Illegal instructionAndreas Schneider1-1/+1
This is raised on a -O3 build.
2018-08-22cmake: Add new CompilerCheck.cmakeAndreas Schneider1-0/+2
2018-06-11tests: Add a test to check if wildcards are workingAndreas Schneider1-1/+2
2018-06-11cmocka: Add c_strmatch() functionAndreas Schneider1-0/+1
2017-08-11cmocka: Print the error message of a fixture if it failsAndreas Schneider1-2/+2
This adds error information to the output.
2017-04-05Fix TAP output and summary.Stas Kobzar1-13/+13
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-09-21tests: Add test_groups test to validate xml outputDavid Schneider1-15/+58
This is for multiple groups in one test to make sure they do not create invalid xml. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-10cmocka: Add will_return_maybe() for ignoring mock returnsJoseph Ates1-2/+12
As both parameter and function call order checking allow for ignoring cases where they are never invoked, the mock return values are at somewhat of a mismatch in that they must always be returned at least once (even in the case of will_return_always()). Therefore, the ability to set the count to -2 on will_return_count was added with a new macro (will_return_maybe) that indicates that that the value field may never be returned and still allow a successful test. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-10tests: Add a group setup assert testAndreas Schneider1-0/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-18tests: Add test for call ordering functionalityJoseph Ates1-1/+11
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-05-11cmocka: Add subtests for groups using TAP outputEllie Timoney1-2/+3
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12tests: Use a different regex for segfault on WindowsJakub Hrozek1-6/+14
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-12cmake: Build tests with the static library.Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11cmake: Do not set gcc flags in VC.Andreas Schneider1-1/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmake: Turn off deprecated warning for test_cmockery.cAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10tests: Add message output format testsJakub Hrozek1-0/+62
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-09Add cmockery legacy header.Andreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-09cmocka: Add support for skipping a testJakub Hrozek1-0/+9
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-08tests: Add a test for failing group setupJakub Hrozek1-0/+8
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-08tests: Use new cmocka test runner in our tests and examplesAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-08tests: Add tests for test_malloc() and test_realloc().Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-11tests: Add test_group_fixtures.Andreas Schneider1-0/+1
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
2014-03-03Test should not be run if setup function failsLukas Slebodnik1-1/+41
Assertions are commonly used in setup function. If setup function fail test should not be executed, because it may result into unexpected behaviour (crash) Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-03basic_test should be run with other CMOCKA_TESTSLukas Slebodnik1-1/+2
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-12-23tests: Add test_fixtures.Andreas Schneider1-0/+1
2013-12-23tests: Add test_exception_handler_fail.Andreas Schneider1-1/+10
2013-12-23tests: Add test_assert_macros_fail.Andreas Schneider1-1/+12
2013-12-23tests: Add test_assert_macros.Andreas Schneider1-0/+14