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

tests: enable tcti-pcap tests on big endian platforms #2125

Merged
merged 1 commit into from Jul 19, 2021

Conversation

joholl
Copy link
Collaborator

@joholl joholl commented Jul 16, 2021

Fixes the tcti-pcap tests for big endian platforms. Fixes #2113.

There are two layers here: the pcap blocks are always dumped in host endianness. Everything else (IPv4, TCP, etc.), however, is dumped in network endianness aka big endian.

Therefore, on test layer, only the pcap-layer byte streams are affected by host endianness and need to be swapped.

This fixes the test on an s390x qemu machine with alpine.

Signed-off-by: Johannes Holland <johannes.holland@infineon.com>
@codecov
Copy link

codecov bot commented Jul 16, 2021

Codecov Report

Merging #2125 (4bad4f8) into master (6b4d9a9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2125   +/-   ##
=======================================
  Coverage   85.22%   85.22%           
=======================================
  Files         343      343           
  Lines       37023    37023           
=======================================
  Hits        31553    31553           
  Misses       5470     5470           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b4d9a9...4bad4f8. Read the comment docs.

@AndreasFuchsTPM AndreasFuchsTPM merged commit f36283e into tpm2-software:master Jul 19, 2021
Copy link

@utkarsh2102 utkarsh2102 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perfect, works for me, thanks a bunch! 🌮

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.

test failures on s390x architecture
3 participants