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

trace: Add Fedora Support to trace testing #2779

Merged

Conversation

misanjumn
Copy link
Contributor

@misanjumn misanjumn commented Mar 20, 2024

trace: Add Fedora Support to trace testing

  • Added distros "fedora", "centos" in trace_UDT_probes.py for installing packages: "perf", "systemtap-sdt-devel.ppc64le"
  • Added self.distro_name == "fedora" in perf_uprobe.py for testing of "perf record .." command
  • Added self.distro_name == "fedora" in dawr.py to enable extra setting required to run gdb for fedora

Signed-off-by: Misbah Anjum N [email protected]

@misanjumn
Copy link
Contributor Author

misanjumn commented Mar 20, 2024

Before the patch

trace/perf_uprobe.py
STATUS: FAIL

 (02/03) /home/misanjumn/tests/tests/avocado-misc-tests/trace/perf_uprobe.py:PerfUprobe.test_uprobe_return: STARTED
 (02/03) /home/misanjumn/tests/tests/avocado-misc-tests/trace/perf_uprobe.py:PerfUprobe.test_uprobe_return:  FAIL: perf: perf.data file not created (0.41 s)

trace/trace_UDT_probes.py
STATUS: CANCEL

 (1/1) /home/misanjumn/tests/tests/avocado-misc-tests/trace/trace_UDT_probes.py:TraceUDT.test_trace_udt: STARTED
 (1/1) /home/misanjumn/tests/tests/avocado-misc-tests/trace/trace_UDT_probes.py:TraceUDT.test_trace_udt:  CANCEL: Install the package for perf supported     

trace/dawr.py
STATUS: FAIL

 (1/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v1: STARTED
 (1/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v1:  FAIL: Test case failed for 1 variable (64.74 s)
 (2/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v2: STARTED
 (2/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v2:  FAIL: Test case failed for 2 variables (241.38 s)   

After the patch

trace/perf_uprobe.py
STATUS: PASS

 (02/03) /home/misanjumn/tests/tests/avocado-misc-tests/trace/perf_uprobe.py:PerfUprobe.test_uprobe_return: STARTED
 (02/03) /home/misanjumn/tests/tests/avocado-misc-tests/trace/perf_uprobe.py:PerfUprobe.test_uprobe_return:  PASS (1.74 s)

trace/trace_UDT_probes.py
STATUS: PASS

 (1/1) /home/misanjumn/tests/tests/avocado-misc-tests/trace/trace_UDT_probes.py:TraceUDT.test_trace_udt: STARTED
 (1/1) /home/misanjumn/tests/tests/avocado-misc-tests/trace/trace_UDT_probes.py:TraceUDT.test_trace_udt:  PASS (0.56 s)

trace/dawr.py
STATUS: PASS

 (1/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v1: STARTED
 (1/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v1:  PASS (1.52 s)
 (2/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v2: STARTED
 (2/3) /home/misanjumn/tests/tests/avocado-misc-tests/trace/dawr.py:Dawr.test_read_dawr_v2:  PASS (31.38 s)

Added distros "fedora", "centos" in trace_UDT_probes.py
for installing packages: "perf", "systemtap-sdt-devel.ppc64le"

Added self.distro_name == "fedora" in perf_uprobe.py
for testing of "perf record .." command

Added self.distro_name == "fedora" in dawr.py to enable extra
setting required to run gdb for fedora

Signed-off-by: Misbah Anjum N <[email protected]>
@PraveenPenguin
Copy link
Member

@akanksha216 can you please review

@akanksha216
Copy link
Contributor

Looks good to me

@PraveenPenguin PraveenPenguin merged commit dd7d9b7 into avocado-framework-tests:master Mar 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants