From 00d8dc77830ee2a7914bfb4f1bbc458d42104125 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 7 Oct 2025 11:58:20 +0200 Subject: [PATCH] change get opts tests single file --- tests/CMakeLists.txt | 11 +- tests/kds_s2000w_net_get_opt_tests.c | 133 +++++++++++++++++++++++ tests/kds_s2000w_net_get_opt_tests.h | 51 --------- tests/kds_s2000w_net_get_opt_tests_run.c | 130 ---------------------- 4 files changed, 138 insertions(+), 187 deletions(-) delete mode 100644 tests/kds_s2000w_net_get_opt_tests.h delete mode 100644 tests/kds_s2000w_net_get_opt_tests_run.c diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7b672e2..2bdf349 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,12 +4,11 @@ FIND_PACKAGE(CMOCKA REQUIRED) MESSAGE(STATUS "find ${CMOCKA_LIBRARY}") -ADD_EXECUTABLE("kds_s2000w_net_get_opt_tests_run" - "kds_s2000w_net_get_opt_tests_run.c" +ADD_EXECUTABLE("kds_s2000w_net_get_opt_tests" "kds_s2000w_net_get_opt_tests.c" "kds_s2000w_client_mock.c") -ADD_DEPENDENCIES("kds_s2000w_net_get_opt_tests_run" sane-kds_s2000w_net-static) -TARGET_LINK_LIBRARIES("kds_s2000w_net_get_opt_tests_run" +ADD_DEPENDENCIES("kds_s2000w_net_get_opt_tests" sane-kds_s2000w_net-static) +TARGET_LINK_LIBRARIES("kds_s2000w_net_get_opt_tests" ${CMOCKA_LIBRARY} sane-kds_s2000w_net-static) @@ -67,7 +66,7 @@ TARGET_LINK_LIBRARIES("kds_s2000w_image_type_check_tests" ADD_CUSTOM_TARGET("runningtests" ALL ./kds_s2000w_read_config_tests_run COMMAND ./kds_s2000w_option_descriptor_tests_run - COMMAND ./kds_s2000w_net_get_opt_tests_run + COMMAND ./kds_s2000w_net_get_opt_tests COMMAND ./kds_s2000w_net_tests_run COMMAND ./kds_s2000w_net_read_tests_run COMMAND ./kds_s2000w_image_type_check_tests @@ -75,7 +74,7 @@ ADD_CUSTOM_TARGET("runningtests" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS "kds_s2000w_read_config_tests_run" "kds_s2000w_option_descriptor_tests_run" - "kds_s2000w_net_get_opt_tests_run" + "kds_s2000w_net_get_opt_tests" "kds_s2000w_net_tests_run" "kds_s2000w_net_read_tests_run" "kds_s2000w_image_type_check_tests" diff --git a/tests/kds_s2000w_net_get_opt_tests.c b/tests/kds_s2000w_net_get_opt_tests.c index 2fe9b3a..f422a44 100644 --- a/tests/kds_s2000w_net_get_opt_tests.c +++ b/tests/kds_s2000w_net_get_opt_tests.c @@ -1,3 +1,10 @@ +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -6,9 +13,86 @@ #include "../src/kds_s2000w_client.h" #include "../src/kds_s2000w_net.h" #include "../src/kds_s2000w_handler.h" +#include "../src/kds_s2000w_option_descriptors.h" #define FULL_PROFILE_MAX_OPTION_COUNT 48 +int setup_default_get_option(void** state) +{ + kds_s2000w_option_descriptors_init(PROFILE_FULL); + response* resp = kds_s2000w_client_response_init(); + const char* responsedata = "{ \ + \"Status\": { \ + \"NumImagesScanned\": 0, \ + \"NumImagesStored\": 0, \ + \"State\": \"In Session\", \ + \"ErrorNum\": 0, \ + \"LastError\": \"Status: 200 Success\", \ + \"PaperDetected\": \"0\", \ + \"PercentAvailable\": 99 \ + }, \ + \"Configuration\": { \ + \"DPI\": 200, \ + \"ScanSide\": \"Duplex\", \ + \"ColorMode\": \"Color\", \ + \"SkipBlankPages\": 0, \ + \"SkipBlankPagesContent\": 5, \ + \"AutoStart\": 0, \ + \"ColorDropOut\": \"None\", \ + \"ColorDropOutAggressiveness\" :0, \ + \"OutputType\": \"Images\", \ + \"ColorAutoBrightnessMode\": \"Automatic\", \ + \"ColorBrightness\": 0, \ + \"ColorContrast\": 0, \ + \"ColorBalanceMode\": \"Automatic\", \ + \"ColorBalanceAggressiveness\": 0, \ + \"ColorBalanceRed\": 0, \ + \"ColorBalanceGreen\": 0, \ + \"ColorBalanceBlue\": 0, \ + \"ColorSharpen\": \"Normal\", \ + \"ForegroundBoldnessMode\": \"None\", \ + \"ForegroundBoldnessAggressiveness\": 0, \ + \"BackgroundSmoothingMode\": \"None\", \ + \"BackgroundSmoothingAggressiveness\": 0, \ + \"BinarizationMode\": \"iThresholding\", \ + \"BinarizationContrast\": 0, \ + \"MaxDocumentLength\": 140, \ + \"MultifeedSensitivity\": \"None\", \ + \"MultifeedResponse\": \"Stop\", \ + \"PostScanRotation\": \"Automatic\", \ + \"EdgeFill\": \"Automatic\", \ + \"ScanSource\": \"DocumentFeeder\", \ + \"ImageBorder\": \"None\", \ + \"TransportHandling\": \"Normal\", \ + \"DocumentFeederTimeout\": 2, \ + \"DocumentFeederTimeoutResponse\": \"Stop\", \ + \"JpegQuality\": \"Good\", \ + \"HoleFill\": 0, \ + \"CroppingMode\": \"AutomaticStraighten\", \ + \"CroppingImage\": \"EntireDocument\", \ + \"ImageOffsetX\": 0, \ + \"ImageOffsetY\": 0, \ + \"ImageWidth\": 10, \ + \"ImageHeight\": 10 \ + } \ + }"; + resp->size = 1503; + resp->data = malloc(resp->size); + memcpy(resp->data, responsedata, resp->size); + resp->code = 200; + *state = resp; + return 0; +} + +int teardown_default_get_option(void** state) +{ + kds_s2000w_option_descriptors_free(); + response* resp = (response*) *state; + kds_s2000w_client_response_free(resp); + resp = NULL; + return 0; +} + void sane_kds_s2000w_net_control_get_option_zero_test(void** state) { response* resp = (response*) *state; @@ -628,4 +712,53 @@ void sane_kds_s2000w_net_control_get_option_fourtyseven_test(void** state) kds_s2000w_handler_free(h); h = NULL; +} + +int main() +{ + const struct CMUnitTest net_tests[] = { + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_zero_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_two_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_three_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_four_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_five_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_seven_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_eight_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_nine_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_ten_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_eleven_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twelve_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourteen_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fifteen_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_sixteen_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_seventeen_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_nineteen_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twenty_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyone_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentytwo_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentythree_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyfour_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyfive_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentysix_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyseven_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyeight_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentynine_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdy_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdythree_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyfour_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyfive_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdysix_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyseven_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyeight_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdynine_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyone_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtytwo_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtythree_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyfour_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyfive_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtysix_test, setup_default_get_option, teardown_default_get_option), + cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyseven_test, setup_default_get_option, teardown_default_get_option) + }; + + return cmocka_run_group_tests(net_tests, NULL, NULL); } \ No newline at end of file diff --git a/tests/kds_s2000w_net_get_opt_tests.h b/tests/kds_s2000w_net_get_opt_tests.h deleted file mode 100644 index d8cd008..0000000 --- a/tests/kds_s2000w_net_get_opt_tests.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef KDS_S2000W_NET_GET_OPT_TESTS_H -#define KDS_S2000W_NET_GET_OPT_TESTS_H -#include -#include -#include -#include -#include - -void sane_kds_s2000w_net_control_get_option_zero_test(void** state); -void sane_kds_s2000w_net_control_get_option_two_test(void** state); -void sane_kds_s2000w_net_control_get_option_three_test(void** state); -void sane_kds_s2000w_net_control_get_option_four_test(void** state); -void sane_kds_s2000w_net_control_get_option_five_test(void** state); -void sane_kds_s2000w_net_control_get_option_seven_test(void** state); -void sane_kds_s2000w_net_control_get_option_eight_test(void** state); -void sane_kds_s2000w_net_control_get_option_nine_test(void** state); -void sane_kds_s2000w_net_control_get_option_ten_test(void** state); -void sane_kds_s2000w_net_control_get_option_eleven_test(void** state); -void sane_kds_s2000w_net_control_get_option_twelve_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourteen_test(void** state); -void sane_kds_s2000w_net_control_get_option_fifteen_test(void** state); -void sane_kds_s2000w_net_control_get_option_sixteen_test(void** state); -void sane_kds_s2000w_net_control_get_option_seventeen_test(void** state); -void sane_kds_s2000w_net_control_get_option_nineteen_test(void** state); -void sane_kds_s2000w_net_control_get_option_twenty_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentyone_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentytwo_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentythree_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentyfour_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentyfive_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentysix_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentyseven_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentyeight_test(void** state); -void sane_kds_s2000w_net_control_get_option_twentynine_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdy_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdythree_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdyfour_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdyfive_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdysix_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdyseven_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdyeight_test(void** state); -void sane_kds_s2000w_net_control_get_option_thirdynine_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtyone_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtytwo_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtythree_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtyfour_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtyfive_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtysix_test(void** state); -void sane_kds_s2000w_net_control_get_option_fourtyseven_test(void** state); - -#endif \ No newline at end of file diff --git a/tests/kds_s2000w_net_get_opt_tests_run.c b/tests/kds_s2000w_net_get_opt_tests_run.c deleted file mode 100644 index 6acdfd6..0000000 --- a/tests/kds_s2000w_net_get_opt_tests_run.c +++ /dev/null @@ -1,130 +0,0 @@ -#include -#include -#include "kds_s2000w_net_get_opt_tests.h" -#include "../src/kds_s2000w_client.h" -#include "../src/kds_s2000w_option_descriptors.h" - -int setup_default_get_option(void** state) -{ - kds_s2000w_option_descriptors_init(PROFILE_FULL); - response* resp = kds_s2000w_client_response_init(); - const char* responsedata = "{ \ - \"Status\": { \ - \"NumImagesScanned\": 0, \ - \"NumImagesStored\": 0, \ - \"State\": \"In Session\", \ - \"ErrorNum\": 0, \ - \"LastError\": \"Status: 200 Success\", \ - \"PaperDetected\": \"0\", \ - \"PercentAvailable\": 99 \ - }, \ - \"Configuration\": { \ - \"DPI\": 200, \ - \"ScanSide\": \"Duplex\", \ - \"ColorMode\": \"Color\", \ - \"SkipBlankPages\": 0, \ - \"SkipBlankPagesContent\": 5, \ - \"AutoStart\": 0, \ - \"ColorDropOut\": \"None\", \ - \"ColorDropOutAggressiveness\" :0, \ - \"OutputType\": \"Images\", \ - \"ColorAutoBrightnessMode\": \"Automatic\", \ - \"ColorBrightness\": 0, \ - \"ColorContrast\": 0, \ - \"ColorBalanceMode\": \"Automatic\", \ - \"ColorBalanceAggressiveness\": 0, \ - \"ColorBalanceRed\": 0, \ - \"ColorBalanceGreen\": 0, \ - \"ColorBalanceBlue\": 0, \ - \"ColorSharpen\": \"Normal\", \ - \"ForegroundBoldnessMode\": \"None\", \ - \"ForegroundBoldnessAggressiveness\": 0, \ - \"BackgroundSmoothingMode\": \"None\", \ - \"BackgroundSmoothingAggressiveness\": 0, \ - \"BinarizationMode\": \"iThresholding\", \ - \"BinarizationContrast\": 0, \ - \"MaxDocumentLength\": 140, \ - \"MultifeedSensitivity\": \"None\", \ - \"MultifeedResponse\": \"Stop\", \ - \"PostScanRotation\": \"Automatic\", \ - \"EdgeFill\": \"Automatic\", \ - \"ScanSource\": \"DocumentFeeder\", \ - \"ImageBorder\": \"None\", \ - \"TransportHandling\": \"Normal\", \ - \"DocumentFeederTimeout\": 2, \ - \"DocumentFeederTimeoutResponse\": \"Stop\", \ - \"JpegQuality\": \"Good\", \ - \"HoleFill\": 0, \ - \"CroppingMode\": \"AutomaticStraighten\", \ - \"CroppingImage\": \"EntireDocument\", \ - \"ImageOffsetX\": 0, \ - \"ImageOffsetY\": 0, \ - \"ImageWidth\": 10, \ - \"ImageHeight\": 10 \ - } \ - }"; - resp->size = 1503; - resp->data = malloc(resp->size); - memcpy(resp->data, responsedata, resp->size); - resp->code = 200; - *state = resp; - return 0; -} - -int teardown_default_get_option(void** state) -{ - kds_s2000w_option_descriptors_free(); - response* resp = (response*) *state; - kds_s2000w_client_response_free(resp); - resp = NULL; - return 0; -} - -int main() -{ - const struct CMUnitTest net_tests[] = { - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_zero_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_two_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_three_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_four_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_five_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_seven_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_eight_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_nine_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_ten_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_eleven_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twelve_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourteen_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fifteen_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_sixteen_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_seventeen_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_nineteen_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twenty_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyone_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentytwo_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentythree_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyfour_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyfive_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentysix_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyseven_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentyeight_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_twentynine_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdy_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdythree_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyfour_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyfive_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdysix_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyseven_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdyeight_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_thirdynine_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyone_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtytwo_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtythree_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyfour_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyfive_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtysix_test, setup_default_get_option, teardown_default_get_option), - cmocka_unit_test_setup_teardown(sane_kds_s2000w_net_control_get_option_fourtyseven_test, setup_default_get_option, teardown_default_get_option) - }; - - return cmocka_run_group_tests(net_tests, NULL, NULL); -} \ No newline at end of file -- 2.47.3