From ded36c617624e9ff2c813f93847ede9398e0cfd8 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 17 Mar 2024 13:23:08 +0100 Subject: [PATCH] migrate get options --- CMakeLists.txt | 7 +- tests/CMakeLists.txt | 2 + tests/kds_s2000w_net_tests.c | 191 ++++++++++++++++------------------- tests/kds_s2000w_net_tests.h | 21 ++++ tests/runtests.c | 23 ++++- 5 files changed, 136 insertions(+), 108 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f073208..bffc08b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,12 @@ set(CMAKE_C_COMPILER gcc CACHE STRING "compiler") if (NOT RUN_TESTS) set(CMAKE_C_FLAGS "-Wall -Werror" CACHE STRING "compiler flags") else() - set(CMAKE_C_FLAGS "-fPIC -fprofile-arcs -ftest-coverage -Wall" CACHE STRING "test coverage compiler flags") + set(CMAKE_C_FLAGS "-fPIC \ + -fprofile-arcs \ + -ftest-coverage \ + -Wall \ + -Xlinker \ + --wrap=kds_s2000w_client_get_option" CACHE STRING "test coverage compiler flags") endif() message(STATUS "CMAKE_C_FLAGS " ${CMAKE_C_FLAGS}) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3d86abb..52bc669 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,6 +5,8 @@ find_library(SUBUNIT NAMES subunit REQUIRED) find_library(MATH NAMES m REQUIRED) find_package(CMOCKA REQUIRED) +set(CMAKE_EXE_LINKER_FLAGS ) + message(STATUS "find ${CMOCKA_LIBRARY}") add_executable("runtests" diff --git a/tests/kds_s2000w_net_tests.c b/tests/kds_s2000w_net_tests.c index d37885b..6193aa4 100644 --- a/tests/kds_s2000w_net_tests.c +++ b/tests/kds_s2000w_net_tests.c @@ -5,7 +5,7 @@ #include "../src/kds_s2000w_net.h" #include "../src/kds_s2000w_handler.h" -int kds_s2000w_client_get_option(int64_t sessionid, response* response) +int __wrap_kds_s2000w_client_get_option(int64_t sessionid, response* response) { response->data = realloc(response->data, 918); const char* responsedata = "{ \ @@ -49,7 +49,7 @@ int kds_s2000w_client_get_option(int64_t sessionid, response* response) response->code = 200; response->size = sizeof(response->data); - return 0; + return mock_type(int); } int kds_s2000w_client_stop_scan(int64_t sessionid, response* response) @@ -156,21 +156,22 @@ void kds_s2000w_net_get_select_fd() assert_int_equal(result, SANE_STATUS_UNSUPPORTED); } -START_TEST(sane_kds_s2000w_net_control_get_option_zero) +void sane_kds_s2000w_net_control_get_option_zero() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int value = 0; _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(value, 24); + assert_int_equal(value, 24); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_two) +void sane_kds_s2000w_net_control_get_option_two() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -178,15 +179,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_two) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 2, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "DocumentFeeder"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "DocumentFeeder"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_three) +void sane_kds_s2000w_net_control_get_option_three() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -194,15 +195,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_three) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 3, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "Color"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "Color"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_four) +void sane_kds_s2000w_net_control_get_option_four() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = 0; @@ -210,15 +211,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_four) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 4, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 200); + assert_int_equal(option_num, 24); + assert_int_equal(value, 200); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_five) +void sane_kds_s2000w_net_control_get_option_five() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -226,15 +227,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_five) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 5, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "Duplex"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "Duplex"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_six) +void sane_kds_s2000w_net_control_get_option_six() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = 0; @@ -242,15 +243,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_six) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 6, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 8); + assert_int_equal(option_num, 24); + assert_int_equal(value, 8); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_eight) +void sane_kds_s2000w_net_control_get_option_eight() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -258,15 +259,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_eight) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 8, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_nine) +void sane_kds_s2000w_net_control_get_option_nine() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -274,15 +275,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_nine) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 9, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "None"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "None"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_ten) +void sane_kds_s2000w_net_control_get_option_ten() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -290,15 +291,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_ten) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 10, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_eleven) +void sane_kds_s2000w_net_control_get_option_eleven() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -306,15 +307,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_eleven) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 11, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "Automatic"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "Automatic"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_twelve) +void sane_kds_s2000w_net_control_get_option_twelve() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -322,15 +323,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_twelve) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 12, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "Automatic"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "Automatic"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_thirteen) +void sane_kds_s2000w_net_control_get_option_thirteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -338,15 +339,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_thirteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 13, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_fourteen) +void sane_kds_s2000w_net_control_get_option_fourteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -354,15 +355,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_fourteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 14, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_fifteen) +void sane_kds_s2000w_net_control_get_option_fifteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -370,15 +371,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_fifteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 15, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_sixteen) +void sane_kds_s2000w_net_control_get_option_sixteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -386,15 +387,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_sixteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 16, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_seventeen) +void sane_kds_s2000w_net_control_get_option_seventeen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -402,15 +403,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_seventeen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 17, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "None"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "None"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_eightteen) +void sane_kds_s2000w_net_control_get_option_eightteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -418,15 +419,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_eightteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 18, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_nineteen) +void sane_kds_s2000w_net_control_get_option_nineteen() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; char value[50] = {0}; @@ -434,15 +435,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_nineteen) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 19, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_str_eq(value, "None"); + assert_int_equal(option_num, 24); + assert_string_equal(value, "None"); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_twenty) +void sane_kds_s2000w_net_control_get_option_twenty() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -450,15 +451,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_twenty) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 20, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_twentyone) +void sane_kds_s2000w_net_control_get_option_twentyone() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -466,15 +467,15 @@ START_TEST(sane_kds_s2000w_net_control_get_option_twentyone) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 21, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 0); + assert_int_equal(option_num, 24); + assert_int_equal(value, 0); free_handler(h); h = NULL; } -END_TEST -START_TEST(sane_kds_s2000w_net_control_get_option_twentytwo) +void sane_kds_s2000w_net_control_get_option_twentytwo() { + will_return(__wrap_kds_s2000w_client_get_option, 0); handler* h = init_handler(); int option_num = 0; int value = -1; @@ -482,12 +483,11 @@ START_TEST(sane_kds_s2000w_net_control_get_option_twentytwo) _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL); _sane_kds_s2000w_net_control_option(h, 22, SANE_ACTION_GET_VALUE, &value, NULL); - ck_assert_int_eq(option_num, 24); - ck_assert_int_eq(value, 140); + assert_int_equal(option_num, 24); + assert_int_equal(value, 140); free_handler(h); h = NULL; } -END_TEST START_TEST(sane_kds_s2000w_net_start_cancel) { @@ -554,27 +554,6 @@ Suite* net_tests() Suite* net_tests_suite = suite_create("kds_s2000w_net"); TCase* net_tests = tcase_create("kds_s2000w_net_tests"); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_zero); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_two); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_three); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_four); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_five); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_six); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_eight); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_nine); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_ten); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_eleven); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_twelve); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_thirteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_fourteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_fifteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_sixteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_seventeen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_eightteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_nineteen); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_twenty); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_twentyone); - tcase_add_test(net_tests, sane_kds_s2000w_net_control_get_option_twentytwo); tcase_add_test(net_tests, sane_kds_s2000w_net_get_parameter_cancel); tcase_add_test(net_tests, sane_kds_s2000w_net_start_cancel); tcase_add_test(net_tests, sane_kds_s2000w_net_cancel); diff --git a/tests/kds_s2000w_net_tests.h b/tests/kds_s2000w_net_tests.h index d5127b1..07fb8cb 100644 --- a/tests/kds_s2000w_net_tests.h +++ b/tests/kds_s2000w_net_tests.h @@ -14,6 +14,27 @@ void kds_s2000w_net_init(); void kds_s2000w_net_get_devices_only_remote(); void kds_s2000w_net_set_io_mode(); void kds_s2000w_net_get_select_fd(); +void sane_kds_s2000w_net_control_get_option_zero(); +void sane_kds_s2000w_net_control_get_option_two(); +void sane_kds_s2000w_net_control_get_option_three(); +void sane_kds_s2000w_net_control_get_option_four(); +void sane_kds_s2000w_net_control_get_option_five(); +void sane_kds_s2000w_net_control_get_option_six(); +void sane_kds_s2000w_net_control_get_option_eight(); +void sane_kds_s2000w_net_control_get_option_nine(); +void sane_kds_s2000w_net_control_get_option_ten(); +void sane_kds_s2000w_net_control_get_option_eleven(); +void sane_kds_s2000w_net_control_get_option_twelve(); +void sane_kds_s2000w_net_control_get_option_thirteen(); +void sane_kds_s2000w_net_control_get_option_fourteen(); +void sane_kds_s2000w_net_control_get_option_fifteen(); +void sane_kds_s2000w_net_control_get_option_sixteen(); +void sane_kds_s2000w_net_control_get_option_seventeen(); +void sane_kds_s2000w_net_control_get_option_eightteen(); +void sane_kds_s2000w_net_control_get_option_nineteen(); +void sane_kds_s2000w_net_control_get_option_twenty(); +void sane_kds_s2000w_net_control_get_option_twentyone(); +void sane_kds_s2000w_net_control_get_option_twentytwo(); Suite* net_tests(); #endif \ No newline at end of file diff --git a/tests/runtests.c b/tests/runtests.c index f8458c4..57b1f55 100644 --- a/tests/runtests.c +++ b/tests/runtests.c @@ -50,7 +50,28 @@ int run_cmocka_tests() cmocka_unit_test(kds_s2000w_net_init), cmocka_unit_test(kds_s2000w_net_get_devices_only_remote), cmocka_unit_test(kds_s2000w_net_set_io_mode), - cmocka_unit_test(kds_s2000w_net_get_select_fd) + cmocka_unit_test(kds_s2000w_net_get_select_fd), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_zero), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_two), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_three), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_four), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_five), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_six), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_eight), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_nine), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_ten), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_eleven), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twelve), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_thirteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_fourteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_fifteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_sixteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_seventeen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_eightteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_nineteen), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twenty), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twentyone), + cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twentytwo) }; result = cmocka_run_group_tests(net_read_tests, NULL, NULL); -- 2.39.5