Skip to content

Commit 7452d05

Browse files
authored
[=] add usage specifications for test_client and test_server (#318)
1 parent c8faa4f commit 7452d05

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/test_client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,6 +3866,8 @@ void usage(int argc, char *argv[]) {
38663866
" -J Random CID. default is 0.\n"
38673867
" -Q Multipath backup path standby, set backup_mode on(1). default backup_mode is 0(off).\n"
38683868
" -A Multipath request accelerate on. default is 0(off).\n"
3869+
" -y multipath backup path standby.\n"
3870+
" -z periodically send request.\n"
38693871
, prog);
38703872
}
38713873

tests/test_server.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,10 @@ void usage(int argc, char *argv[]) {
19991999
" -K load balance id encryption key\n"
20002000
" -o Output log file path, default ./slog\n"
20012001
" -m Set mpshell on.\n"
2002+
" -y Multipath backup path standby.\n"
20022003
" -Q Multipath backup path standby, set backup_mode on(1). default backup_mode is 0(off).\n"
2004+
" -H Disable h3_ext.\n"
2005+
" -U Send_datagram 0 (off), 1 (on), 2(on + batch).\n"
20032006
, prog);
20042007
}
20052008

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

20512054
int ch = 0;
2052-
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) {
2055+
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) {
20532056
switch (ch) {
20542057
case 'H':
20552058
printf("option disable h3_ext\n");
@@ -2153,7 +2156,7 @@ int main(int argc, char *argv[]) {
21532156
g_sid_len = strlen(g_sid);
21542157
break;
21552158
case 'M':
2156-
printf("option enable multi-path: %s\n", optarg);
2159+
printf("option enable multi-path: %s\n", "on");
21572160
g_enable_multipath = 1;
21582161
break;
21592162
case 'R':

0 commit comments

Comments
 (0)