From: Hao Fang fanghao11@huawei.com
Remove the -F/-n/-v cmd.
Signed-off-by: Hao Fang fanghao11@huawei.com Signed-off-by: Qi Tao taoqi10@huawei.com --- uadk_tool/test/comp_lib.c | 13 ------------- uadk_tool/test/comp_lib.h | 8 +------- uadk_tool/test/comp_main.c | 2 -- 3 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/uadk_tool/test/comp_lib.c b/uadk_tool/test/comp_lib.c index c2e4410..5e33d88 100644 --- a/uadk_tool/test/comp_lib.c +++ b/uadk_tool/test/comp_lib.c @@ -1678,13 +1678,6 @@ int parse_common_option(const char opt, const char *optarg, if (opts->compact_run_num <= 0) return 1; break; - case 'n': - opts->run_num = strtol(optarg, NULL, 0); - SYS_ERR_COND(opts->run_num > MAX_RUNS, - "No more than %d runs supported\n", MAX_RUNS); - if (opts->run_num <= 0) - return 1; - break; case 'q': opts->q_num = strtol(optarg, NULL, 0); if (opts->q_num <= 0) @@ -1693,9 +1686,6 @@ int parse_common_option(const char opt, const char *optarg, case 'd': opts->op_type = WD_DIR_DECOMPRESS; break; - case 'F': - opts->is_file = true; - break; case 'S': opts->is_stream = MODE_STREAM; break; @@ -1717,9 +1707,6 @@ int parse_common_option(const char opt, const char *optarg, case 'V': opts->verify = true; break; - case 'v': - opts->verbose = true; - break; case 'a': opts->alg_type = WD_DEFLATE; break; diff --git a/uadk_tool/test/comp_lib.h b/uadk_tool/test/comp_lib.h index 4d11a84..775c72b 100644 --- a/uadk_tool/test/comp_lib.h +++ b/uadk_tool/test/comp_lib.h @@ -71,8 +71,6 @@ struct test_options { int q_num; unsigned long total_len;
-#define MAX_RUNS 1024 - int run_num; /* tasks running in parallel */ int compact_run_num;
@@ -101,7 +99,6 @@ struct test_options { __u8 data_fmt;
bool verify; - bool verbose; bool is_decomp; bool is_stream; bool is_file; @@ -333,18 +330,15 @@ static inline void hizip_test_adjust_len(struct test_options *opts) opts->block_size * opts->block_size; }
-#define COMMON_OPTSTRING "hb:n:q:l:FSs:Vvzt:m:dacLZ" +#define COMMON_OPTSTRING "hb:q:l:Ss:Vzt:m:dacLZ"
#define COMMON_HELP "%s [opts]\n" \ " -b <size> block size\n" \ - " -n <num> number of runs\n" \ " -q <num> number of queues\n" \ " -l <num> number of compact runs\n" \ - " -F input file, default no input\n" \ " -S stream mode, default block mode\n" \ " -s <size> total size\n" \ " -V verify output\n" \ - " -v display detailed performance information\n" \ " -a test deflate algorithm, default gzip\n" \ " -z test zlib algorithm, default gzip\n" \ " -t <num> number of thread per process\n" \ diff --git a/uadk_tool/test/comp_main.c b/uadk_tool/test/comp_main.c index 39f8525..9f0e7de 100644 --- a/uadk_tool/test/comp_main.c +++ b/uadk_tool/test/comp_main.c @@ -1626,14 +1626,12 @@ int test_comp_entry(int argc, char *argv[]) .alg_type = WD_GZIP, .op_type = WD_DIR_COMPRESS, .q_num = 1, - .run_num = 1, .compact_run_num = 1, .thread_num = 1, .sync_mode = 0, .block_size = 512000, .total_len = opts.block_size * 10, .verify = false, - .verbose = false, .is_decomp = false, .is_stream = false, .is_file = false,