• Petar Gligoric's avatar
    perf test: add new task-analyzer tests · e8478b84
    Petar Gligoric authored
    Provide task-analyzer test cases for all possible arguments and a subset of possible
    combinations.
    
    12 Tests in total.
    
    test_basic:
     - cmd:"perf script report task-analyzer"
     - Fundamental test of script without arguments.
     - Check for standard output.
    
    test_ns_rename:
     - cmd:"perf script report task-analyzer --ns --rename-comms-by-tids 0:random"
     - Standard task with timestamps in nanoseconds and comm renamed.
     - Check for standard output.
    
    test_ms_filtertasks_highlight:
     - cmd:"perf script report task-analyzer --ms --filter-tasks perf --highlight-tasks perf"
     - Standard task with timestamps in milliseconds, task filtered out and highlighted.
     - Check for standard output.
    
    test_extended_times_timelimit_limittasks:
     - cmd "perf script report task-analyzer --extended-times --time-limit :99999"
     - Standard task with additional schedule out/in info and timlimit active at 99999.
     - Check for extended table output.
    
    test_summary:
     - cmd:"perf script report task-analyzer --summary"
     - Standard task with additional summary output.
     - Check for summary print.
    
    test_summary_extended:
     - cmd:"perf script report task-analyzer --summary-extended"
     - Standard task with summary and additional schedule in/out info.
     - Chceck for extended table print.
    
    test_summaryonly:
     - cmd:"perf script report task-analyzer --summary-only"
     - Only summary should be printed.
     - Check for summary print.
    
    test_extended_times_summary_ns:
     - cmd:"perf script report task-analyzer --extended-times --summary --ns"
     - Standard task with extended schedule in/out information and summary in ns.
     - Check for extended table and summary.
    
    test_csv:
     - cmd:"perf script report task-analyzer --csv csv"
     - Print standard task to csv file in csv format.
     - Check for csv format.
    
    test_csv_extended_times:
     - cmd:"perf script report task-analyzer --csv csv --extended-times"
     - Print standard task to csv file in csv format with additional schedule in/out
       information.
     - Check for additional information and csv format.
    
    test_csvsummary:
     - cmd:"perf script report task-analyzer --csv-summary csvsummary"
     - Print summary to csvsummary file in csv format.
     - Check for csv format.
    
    test_csvsummary_extended:
     - cmd:"perf script report task-analyzer --csv-summary csvsummary --summary-extended"
     - Print summary to csvsummary file in csv format with additional schedule in/out
       information.
     - Check for additional information and csv format.
    Suggested-by: default avatarIan Rogers <irogers@google.com>
    Signed-off-by: default avatarPetar Gligoric <petar.gligoric@rohde-schwarz.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Link: https://lore.kernel.org/r/20221206154406.41941-4-petar.gligor@gmail.comSigned-off-by: default avatarHagen Paul Pfeifer <hagen@jauu.net>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    e8478b84
test_task_analyzer.sh 3.36 KB