Lines Matching refs:buf
923 const char *expect_str, char *buf, const char *from, in check_arg() argument
927 buf[expect_ret] = '['; in check_arg()
929 cmdline_set_arg(buf, expect_ret, from, arg, val, NULL)); in check_arg()
930 ut_asserteq_str(expect_str, buf); in check_arg()
931 ut_asserteq('[', buf[expect_ret]); in check_arg()
934 ut_asserteq(-E2BIG, cmdline_set_arg(buf, expect_ret - 1, from, arg, in check_arg()
943 char buf[50]; in test_bootflow_cmdline_set() local
944 const int size = sizeof(buf); in test_bootflow_cmdline_set()
952 ut_asserteq(-ENOENT, cmdline_set_arg(buf, size, NULL, "me", NULL, in test_bootflow_cmdline_set()
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()
1010 buf, "mary=\"abc def\" arg=123 john", "def", in test_bootflow_cmdline_set()
1014 ut_asserteq(-EBADF, cmdline_set_arg(buf, size, in test_bootflow_cmdline_set()
1019 ut_asserteq(-EBADF, cmdline_set_arg(buf, size, in test_bootflow_cmdline_set()
1024 ut_asserteq(-EBADF, cmdline_set_arg(buf, size, 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()
1175 char buf[500]; in bootflow_cmdline_special() local
1183 buf, sizeof(buf), in bootflow_cmdline_special()
1186 ut_asserteq_str("loglevel=7 rootwait ro noinitrd", buf); in bootflow_cmdline_special()