Lines Matching refs:uts

39 static int inject_response(struct unit_test_state *uts)  in inject_response()  argument
56 static int bootflow_cmd(struct unit_test_state *uts) in bootflow_cmd() argument
94 static int bootflow_cmd_label(struct unit_test_state *uts) in bootflow_cmd_label() argument
149 static int bootflow_cmd_glob(struct unit_test_state *uts) in bootflow_cmd_glob() argument
151 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_cmd_glob()
180 static int bootflow_cmd_scan_e(struct unit_test_state *uts) in bootflow_cmd_scan_e() argument
182 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_cmd_scan_e()
231 static int bootflow_cmd_info(struct unit_test_state *uts) in bootflow_cmd_info() argument
271 static int bootflow_scan_boot(struct unit_test_state *uts) in bootflow_scan_boot() argument
273 ut_assertok(inject_response(uts)); in bootflow_scan_boot()
292 static int bootflow_iter(struct unit_test_state *uts) in bootflow_iter() argument
392 static int bootflow_system(struct unit_test_state *uts) in bootflow_system() argument
420 static int bootflow_iter_disable(struct unit_test_state *uts) in bootflow_iter_disable() argument
432 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_iter_disable()
435 ut_assertok(inject_response(uts)); in bootflow_iter_disable()
443 ut_assertok(inject_response(uts)); in bootflow_iter_disable()
459 static int bootflow_scan_glob_bootmeth(struct unit_test_state *uts) in bootflow_scan_glob_bootmeth() argument
464 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_scan_glob_bootmeth()
500 static int bootflow_cmd_boot(struct unit_test_state *uts) in bootflow_cmd_boot() argument
509 ut_assertok(inject_response(uts)); in bootflow_cmd_boot()
540 static int prep_mmc_bootdev(struct unit_test_state *uts, const char *mmc_dev, in prep_mmc_bootdev() argument
593 static int scan_mmc_bootdev(struct unit_test_state *uts, const char *mmc_dev, in scan_mmc_bootdev() argument
600 ut_assertok(prep_mmc_bootdev(uts, mmc_dev, bind_cros, &old_order)); in scan_mmc_bootdev()
621 static int scan_mmc_android_bootdev(struct unit_test_state *uts, const char *mmc_dev) in scan_mmc_android_bootdev() argument
627 ut_assertok(prep_mmc_bootdev(uts, mmc_dev, true, &old_order)); in scan_mmc_android_bootdev()
631 ut_check_skipline(uts); in scan_mmc_android_bootdev()
632 ut_check_skipline(uts); in scan_mmc_android_bootdev()
649 static int scan_mmc4_bootdev(struct unit_test_state *uts) in scan_mmc4_bootdev() argument
651 ut_assertok(scan_mmc_bootdev(uts, "mmc4", false)); in scan_mmc4_bootdev()
657 static int bootflow_cmd_menu(struct unit_test_state *uts) in bootflow_cmd_menu() argument
665 ut_assertok(scan_mmc4_bootdev(uts)); in bootflow_cmd_menu()
693 static int bootflow_scan_menu(struct unit_test_state *uts) in bootflow_scan_menu() argument
702 ut_assertok(prep_mmc_bootdev(uts, "mmc4", false, &old_order)); in bootflow_scan_menu()
741 static int bootflow_scan_menu_boot(struct unit_test_state *uts) in bootflow_scan_menu_boot() argument
750 ut_assertok(prep_mmc_bootdev(uts, "mmc4", false, &old_order)); in bootflow_scan_menu_boot()
787 static int bootflow_cmd_hunt_single(struct unit_test_state *uts) in bootflow_cmd_hunt_single() argument
794 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_cmd_hunt_single()
810 static int bootflow_cmd_hunt_label(struct unit_test_state *uts) in bootflow_cmd_hunt_label() argument
819 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_cmd_hunt_label()
853 static int check_font(struct unit_test_state *uts, struct scene *scn, uint id, in check_font() argument
867 static int bootflow_menu_theme(struct unit_test_state *uts) in bootflow_menu_theme() argument
878 ut_assertok(scan_mmc4_bootdev(uts)); in bootflow_menu_theme()
896 ut_assertok(check_font(uts, scn, i, font_size)); in bootflow_menu_theme()
898 ut_assertok(check_font(uts, scn, ITEM_DESC + i, font_size)); in bootflow_menu_theme()
899 ut_assertok(check_font(uts, scn, ITEM_KEY + i, font_size)); in bootflow_menu_theme()
900 ut_assertok(check_font(uts, scn, ITEM_LABEL + i, font_size)); in bootflow_menu_theme()
922 static int check_arg(struct unit_test_state *uts, int expect_ret, in check_arg() argument
941 static int test_bootflow_cmdline_set(struct unit_test_state *uts) in test_bootflow_cmdline_set() argument
955 ut_assertok(check_arg(uts, 3, "me", buf, NULL, "me", BOOTFLOWCL_EMPTY)); in test_bootflow_cmdline_set()
956 ut_assertok(check_arg(uts, 4, "me=", buf, NULL, "me", "")); in test_bootflow_cmdline_set()
957 ut_assertok(check_arg(uts, 8, "me=fred", buf, NULL, "me", "fred")); in test_bootflow_cmdline_set()
960 ut_assertok(check_arg(uts, 11, "arg=123 me", buf, "arg=123", "me", in test_bootflow_cmdline_set()
962 ut_assertok(check_arg(uts, 12, "arg=123 me=", buf, "arg=123", "me", in test_bootflow_cmdline_set()
964 ut_assertok(check_arg(uts, 16, "arg=123 me=fred", buf, "arg=123", "me", in test_bootflow_cmdline_set()
968 ut_assertok(check_arg(uts, 1, "", buf, "arg=123", "arg", NULL)); in test_bootflow_cmdline_set()
969 ut_assertok(check_arg(uts, 4, "arg", buf, "arg=123", "arg", in test_bootflow_cmdline_set()
971 ut_assertok(check_arg(uts, 5, "arg=", buf, "arg=123", "arg", "")); in test_bootflow_cmdline_set()
972 ut_assertok(check_arg(uts, 6, "arg=1", buf, "arg=123", "arg", "1")); in test_bootflow_cmdline_set()
973 ut_assertok(check_arg(uts, 9, "arg=1234", buf, "arg=123", "arg", in test_bootflow_cmdline_set()
977 ut_assertok(check_arg(uts, 5, "mary", buf, "mary arg=123", "arg", in test_bootflow_cmdline_set()
979 ut_assertok(check_arg(uts, 9, "mary arg", buf, "mary arg=123", "arg", in test_bootflow_cmdline_set()
981 ut_assertok(check_arg(uts, 10, "mary arg=", buf, "mary arg=123", "arg", in test_bootflow_cmdline_set()
983 ut_assertok(check_arg(uts, 11, "mary arg=1", buf, "mary arg=123", "arg", in test_bootflow_cmdline_set()
985 ut_assertok(check_arg(uts, 14, "mary arg=1234", buf, "mary arg=123", in test_bootflow_cmdline_set()
989 ut_assertok(check_arg(uts, 16, "mary=abc john=2", buf, in test_bootflow_cmdline_set()
991 ut_assertok(check_arg(uts, 20, "mary=abc arg john=2", buf, in test_bootflow_cmdline_set()
994 ut_assertok(check_arg(uts, 21, "mary=abc arg= john=2", buf, in test_bootflow_cmdline_set()
996 ut_assertok(check_arg(uts, 22, "mary=abc arg=1 john=2", buf, in test_bootflow_cmdline_set()
998 ut_assertok(check_arg(uts, 25, "mary=abc arg=1234 john=2", buf, in test_bootflow_cmdline_set()
1002 ut_assertok(check_arg(uts, 16, "mary=\"abc\" john", buf, in test_bootflow_cmdline_set()
1006 ut_assertok(check_arg(uts, 20, "mary=\"abc def\" john", buf, in test_bootflow_cmdline_set()
1009 ut_assertok(check_arg(uts, 34, "mary=\"abc def\" arg=123 john def=4", in test_bootflow_cmdline_set()
1029 ut_assertok(check_arg(uts, 27, "mary=\"abc def\" arg=\"4 5 6\"", buf, in test_bootflow_cmdline_set()
1034 ut_assertok(check_arg(uts, 23, "mary=\"abc def\" arg=789", buf, in test_bootflow_cmdline_set()
1039 ut_assertok(check_arg(uts, 29, "mary=\"abc def\" arg=\"456 789\"", buf, in test_bootflow_cmdline_set()
1043 ut_assertok(check_arg(uts, 8, "arg=123", buf, " ", "arg", "123")); in test_bootflow_cmdline_set()
1044 ut_assertok(check_arg(uts, 8, "arg=123", buf, " ", "arg", "123")); in test_bootflow_cmdline_set()
1045 ut_assertok(check_arg(uts, 13, "john arg=123", buf, " john ", "arg", in test_bootflow_cmdline_set()
1047 ut_assertok(check_arg(uts, 13, "john arg=123", buf, " john arg=123 ", in test_bootflow_cmdline_set()
1049 ut_assertok(check_arg(uts, 18, "john arg=123 mary", buf, in test_bootflow_cmdline_set()
1053 ut_assertok(check_arg(uts, 3, "me", buf, "me", "me", BOOTFLOWCL_EMPTY)); in test_bootflow_cmdline_set()
1056 ut_assertok(check_arg(uts, 28, "mary=abc johnathon=2 john=3", buf, in test_bootflow_cmdline_set()
1064 static int bootflow_set_arg(struct unit_test_state *uts) in bootflow_set_arg() argument
1097 static int bootflow_cmdline_get(struct unit_test_state *uts) in bootflow_cmdline_get() argument
1139 static int bootflow_cmdline(struct unit_test_state *uts) in bootflow_cmdline() argument
1173 static int bootflow_cmdline_special(struct unit_test_state *uts) in bootflow_cmdline_special() argument
1193 static int bootflow_cros(struct unit_test_state *uts) in bootflow_cros() argument
1195 ut_assertok(scan_mmc_bootdev(uts, "mmc5", true)); in bootflow_cros()
1227 static int bootflow_android_image_v4(struct unit_test_state *uts) in bootflow_android_image_v4() argument
1232 ut_assertok(scan_mmc_android_bootdev(uts, "mmc7")); in bootflow_android_image_v4()
1250 static int bootflow_android_image_v2(struct unit_test_state *uts) in bootflow_android_image_v2() argument
1255 ut_assertok(scan_mmc_android_bootdev(uts, "mmc8")); in bootflow_android_image_v2()
1273 static int bootflow_efi(struct unit_test_state *uts) in bootflow_efi() argument
1329 ut_assertok(bootstd_test_drop_bootdev_order(uts)); in bootflow_efi()
1336 static int bootstd_images(struct unit_test_state *uts) in bootstd_images() argument
1352 ut_assertok(prep_mmc_bootdev(uts, "mmc4", true, &old_order)); in bootstd_images()