int run_tests_imap() { const struct CMUnitTest tests[] = { cmocka_unit_test_setup(test_handle_line_unknown_handler, setup), cmocka_unit_test_setup(test_handle_line_known_handler, setup), cmocka_unit_test_setup(test_imap_receive_simple, setup), cmocka_unit_test_setup(test_imap_receive_multiple_lines, setup), cmocka_unit_test_setup(test_imap_receive_partial_line, setup), cmocka_unit_test_setup(test_imap_receive_multi_partial_line, setup), cmocka_unit_test_setup(test_imap_receive_full_buffer, setup), }; return cmocka_run_group_tests(tests, setup, NULL); }
int main(void) { const struct CMUnitTest tests[] = { cmocka_unit_test_setup(test_case_1, setup), cmocka_unit_test_setup(test_case_2, setup), cmocka_unit_test_setup(test_case_3, setup), cmocka_unit_test_setup(test_case_4, setup), cmocka_unit_test_setup(test_case_5, setup), cmocka_unit_test_setup(test_case_6, setup), cmocka_unit_test_setup(test_case_8, setup), cmocka_unit_test_setup(test_case_7, setup), cmocka_unit_test_setup(test_case_9, setup), cmocka_unit_test_setup(test_case_10, setup), cmocka_unit_test_setup(test_case_11, setup), cmocka_unit_test_setup(test_case_12, setup), cmocka_unit_test_setup(test_case_13, setup), cmocka_unit_test_setup(test_case_14, setup), }; cmocka_run_group_tests(tests, NULL, NULL); return 0; }