intmain(VOID){intret =0;conststructCMUnitTesttests[] = {cmocka_unit_test(Test_LwCAInitCA_Valid), cmocka_unit_test(Test_LwCAInitCA_Invalid), cmocka_unit_test(Test_LwCACreateRootCA_Valid), cmocka_unit_test(Test_LwCACreateRootCA_Invalid), cmocka_unit_test(Test_LwCAGetCACertificates_Valid), ...
doc: Link to the examples for mocking 2年前 example cmake: Use C99 and define GNU and POSIX flags directly at source files 2年前 include 89 add deprecated cm_print_error 2年前 src cmocka: Add overflow check for test_calloc() 2年前 ...
examples: Add missing compile and link options Mar 2, 2022 include fix problems with gcc version 5 Sep 6, 2022 src cmocka: Add assert_int_in_range() Jul 11, 2022 tests tests: Add tests for assert_uint_in_range() Jul 11, 2022 ...
project(cmocka-examples C CXX) include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMOCKERY_PUBLIC_INCLUDE_DIRS} ${CMOCKA_PUBLIC_INCLUDE_DIRS} ) add_definitions(-DUNIT_TESTING=1) add_executable(calculator_test calculator.c calculator_test.c) target_link_libraries(calculator...
running the examples the examples also get build with ./ci/build.sh [Release] and can be run with ./ci/examples-run.sh or found in build/ └── <Debug|Release>/ ├── ... └── examples/ ├── ... └── test/ ├── ... ├── extref/ │ ├── ... │ ├──...