Skip to content

Commit

Permalink
[=] add usage specifications for test_client and test_server (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kulsk authored Jul 12, 2023
1 parent c8faa4f commit 7452d05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 7452d05

Please sign in to comment.