avocado-framework-tests / avocado-misc-tests

Community maintained Avocado tests repository
Other
22 stars 123 forks source link

perf_pmu_test_enhancement #2860

Closed akanksha216 closed 1 week ago

akanksha216 commented 1 month ago

Add test (test_sysfs_events) for randomly picking files from sysfs and check if a normal user has write access to those files

(3/9) perf_pmu.py:PerfBasic.test_cpu_event_count: PASS (0.04 s) (4/9) perf_pmu.py:PerfBasic.test_sysfs_events: STARTED (4/9) perf_pmu.py:PerfBasic.test_sysfs_events: PASS (1.51 s) (5/9) perf_pmu.py:PerfBasic.test_hv_24x7_event_count: STARTED (5/9) perf_pmu.py:PerfBasic.test_hv_24x7_event_count: PASS (0.04 s) (6/9) perf_pmu.py:PerfBasic.test_imc_event_count: STARTED (6/9) perf_pmu.py:PerfBasic.test_imc_event_count: SKIP: This test is for PowerNV (7/9) perf_pmu.py:PerfBasic.test_thread_event_count: STARTED (7/9) perf_pmu.py:PerfBasic.test_thread_event_count: SKIP: This test is for PowerNV (8/9) perf_pmu.py:PerfBasic.test_nest_cpumask: STARTED (8/9) perf_pmu.py:PerfBasic.test_nest_cpumask: SKIP: This test is for PowerNV (9/9) perf_pmu.py:PerfBasic.test_core_cpumask: STARTED (9/9) perf_pmu.py:PerfBasic.test_core_cpumask: SKIP: This test is for PowerNV

sysfs_events.log

akanksha216 commented 1 month ago

Logs for the second test added, i.e test_checkPowerVersion

(03/10) perf_pmu.py:PerfBasic.test_cpu_event_count: STARTED (03/10) perf_pmu.py:PerfBasic.test_cpu_event_count: PASS (0.04 s) (04/10) perf_pmu.py:PerfBasic.test_sysfs_events: STARTED (04/10) perf_pmu.py:PerfBasic.test_sysfs_events: PASS (1.54 s) (05/10) perf_pmu.py:PerfBasic.test_checkPowerVersion: STARTED (05/10) perf_pmu.py:PerfBasic.test_checkPowerVersion: PASS (0.04 s) (06/10) perf_pmu.py:PerfBasic.test_hv_24x7_event_count: STARTED (06/10) perf_pmu.py:PerfBasic.test_hv_24x7_event_count: PASS (0.03 s) (07/10) perf_pmu.py:PerfBasic.test_imc_event_count: STARTED (07/10) perf_pmu.py:PerfBasic.test_imc_event_count: SKIP: This test is for PowerNV (08/10) perf_pmu.py:PerfBasic.test_thread_event_count: STARTED (08/10) perf_pmu.py:PerfBasic.test_thread_event_count: SKIP: This test is for PowerNV (09/10) perf_pmu.py:PerfBasic.test_nest_cpumask: STARTED (09/10) perf_pmu.py:PerfBasic.test_nest_cpumask: SKIP: This test is for PowerNV (10/10) perf_pmu.py:PerfBasic.test_core_cpumask: STARTED (10/10) perf_pmu.py:PerfBasic.test_core_cpumask: SKIP: This test is for PowerNV

compatmode.log

disgoel commented 1 month ago

@athira-rajeev can you please review

Naresh-ibm commented 1 month ago

@akanksha216 can you please address the review comments and do a force push.