Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[=] add usage specifications for test_client and test_server #318

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -3866,6 +3866,8 @@ void usage(int argc, char *argv[]) {
" -J Random CID. default is 0.\n"
" -Q Multipath backup path standby, set backup_mode on(1). default backup_mode is 0(off).\n"
" -A Multipath request accelerate on. default is 0(off).\n"
" -y multipath backup path standby.\n"
" -z periodically send request.\n"
, prog);
}

Expand Down
7 changes: 5 additions & 2 deletions tests/test_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,10 @@ void usage(int argc, char *argv[]) {
" -K load balance id encryption key\n"
" -o Output log file path, default ./slog\n"
" -m Set mpshell on.\n"
" -y Multipath backup path standby.\n"
" -Q Multipath backup path standby, set backup_mode on(1). default backup_mode is 0(off).\n"
" -H Disable h3_ext.\n"
" -U Send_datagram 0 (off), 1 (on), 2(on + batch).\n"
, prog);
}

Expand Down Expand Up @@ -2049,7 +2052,7 @@ int main(int argc, char *argv[]) {
};

int ch = 0;
while ((ch = getopt_long(argc, argv, "a:p:ec:Cs:w:r:l:u:x:6bS:MR:o:EK:mLQ:U:yH", long_opts, NULL)) != -1) {
while ((ch = getopt_long(argc, argv, "a:p:ec:LCs:w:r:l:u:x:6bS:MR:o:K:EmQ:U:yH", long_opts, NULL)) != -1) {
switch (ch) {
case 'H':
printf("option disable h3_ext\n");
Expand Down Expand Up @@ -2153,7 +2156,7 @@ int main(int argc, char *argv[]) {
g_sid_len = strlen(g_sid);
break;
case 'M':
printf("option enable multi-path: %s\n", optarg);
printf("option enable multi-path: %s\n", "on");
g_enable_multipath = 1;
break;
case 'R':
Expand Down