aboutsummaryrefslogtreecommitdiff
path: root/tests/test_group_fixtures.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-12treewide: Use bool intead of int wherever possibleHEADmasterJakub Czapiga1-0/+1
Use boolean type instead of integer to return logical values. This ensures correct values handling and reduction in confusion for developers. TEST=mkdir obj ; ( cd obj && cmake --DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DPICKY_DEVELOPER=ON DUNIT_TESTING=ON .. && make -j \ && ctest --output-on-failure ) Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2020-10-12cmocka: Replace LargestIntegralType with uintmax_tAndreas Schneider1-0/+1
This requires #include <stdint.h> Fixes #38 Fixes #49
2015-09-23cmocka: Allow to pass initial data to test casesPawel Szewczyk1-0/+2
Sometimes multiple test cases share the same test function, running it on different data. To pass this data to test functions we must define setup function for each data set. It's not very convienient when there are many states to test. This commit introduce more elegant way to pass data to tests. The initial_state field of CMUnitTest structure can be defined by user. It will be either passed to setup function, which makes any preparation needed, or it will be passed directly to test function when setup func is NULL. Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
2015-02-08tests: Use new cmocka test runner in our tests and examplesAndreas Schneider1-8/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-11tests: Add test_group_fixtures.Andreas Schneider1-0/+48
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>