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

uadk_tool: add comp test #643

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

uadk_tool: add comp test #643

wants to merge 14 commits into from

Commits on Nov 21, 2024

  1. uadk_tool: test: change the comp_test directory to uadk_tool

    Now the uadk_tool is the unified test tool but comp test is still in
    the test/hisi_zip_test, and out of maintained for a long time.
    
    Change the directory is the first step for refactoring the test tool.
    
    Use this cmd for help:
    uadk_tool test --m zip --help
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    658f1f6 View commit details
    Browse the repository at this point in the history
  2. uadk_tool: test: unified the log print

    Add DEBUG_LOG macro to control dbg print.
    
    Use the COMP_TST_PRT() to unified the err log print.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    f1f2138 View commit details
    Browse the repository at this point in the history
  3. uadk_tool: test: remove comp test unused cmd

    Remove the -F/-n/-v cmd.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    b86d797 View commit details
    Browse the repository at this point in the history
  4. uadk_tool: test: comp test remove the --ilist_olist cmd

    The cmd --ilist and --olist just use for compress file in block mode, but
    the block mode can be verified by the memory buffer compress testcase.
    
    Just remove the self defined protocol will simplified the tool.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    333542f View commit details
    Browse the repository at this point in the history
  5. uadk_tool: test: remove unuse functions in comp_lib

    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    18c12ce View commit details
    Browse the repository at this point in the history
  6. uadk_tool: test: reduce duplicate code in hw_blk_compress

    hw_blk_compress/hw_stream_compress can do the
    double direction compress.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    8f4e93c View commit details
    Browse the repository at this point in the history
  7. uadk_tool: test: comp test remove poll_thread_func

    Remove the poll_thread_func() and rename poll2_thread_func()
    as the poll_thread_func().
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    a8851ec View commit details
    Browse the repository at this point in the history
  8. uadk_tool: test: comp test remove the number in function name

    The devil numbers in function name is hard to read.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    b7d16a8 View commit details
    Browse the repository at this point in the history
  9. uadk_tool: test: comp test remove the batch mode

    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    64fe9ef View commit details
    Browse the repository at this point in the history
  10. uadk_tool: test: comp test remove the send_thread_func

    Remove the redundant send_thread_func(), the kill and zlib test case
    is still reserved can be added in other function flow.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    73dea83 View commit details
    Browse the repository at this point in the history
  11. uadk_tool: comp test: move info

    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    07383db View commit details
    Browse the repository at this point in the history
  12. uadk_tool: comp test: simplified the test_hw function

    Function wraped like: uadk_res_init(), prepare_src_data(),
    perfdata_print().
    
    And alloc/free of data memory are optimized.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    746f150 View commit details
    Browse the repository at this point in the history
  13. uadk_tool: comp test: unified the test cmd format

    The old format:
    Such as:
      uadk_tool --m zip -b 8192 -s 8192000 -t 8
    New:
      uadk_tool --m zip --blksize 8192 --size 8192000 --thread 8
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    034428d View commit details
    Browse the repository at this point in the history
  14. uadk_tool: comp test: some fixes found with checkpatch

    1.fixes found with chechpatch.
    2.code format alignment.
    
    Signed-off-by: Hao Fang <fanghao11@huawei.com>
    Signed-off-by: Qi Tao <taoqi10@huawei.com>
    haofang11 authored and Qi Tao committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    874caab View commit details
    Browse the repository at this point in the history