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

Improvements to the EMAC test #429

Open
wants to merge 12 commits into
base: dev/emac-mem-manager-improvements
Choose a base branch
from

Conversation

multiplemonomials
Copy link
Collaborator

Summary of changes

This PR does some refactoring and rewriting to improve the EMAC test. I have been working with this test suite a lot the last month or two and ended up making a number of fixes. This includes:

  • Adding C structs that model the CTP packet format, so we can use those to read & write packets instead of just juggling all the pointers manually
  • Making several of the tests slightly shorter and less verbose to make the test quicker to run
  • Improving the multicast test to test removing addresses from the multicast filter
  • Making some variable names and prints easier to understand

Impact of changes

Migration actions required

Documentation


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

@multiplemonomials multiplemonomials force-pushed the dev/emac-mem-manager-improvements branch from 6b06a72 to 2cf8902 Compare January 26, 2025 22:05
@multiplemonomials multiplemonomials force-pushed the dev/emac-test-improvements branch from 21744e4 to 75e4ec6 Compare January 26, 2025 23:19
@multiplemonomials
Copy link
Collaborator Author

Ran the new EMAC test on K64F and NUCLEO_F429ZI. It works good! It correctly detected broken multicast filtering on both boards. The STM32F4 issue will be fixed in my next PR, but the K64F one is a longer term project as it's simply unimplemented.

@multiplemonomials multiplemonomials force-pushed the dev/emac-mem-manager-improvements branch from 78aa49e to c1d4487 Compare January 28, 2025 07:54
@multiplemonomials multiplemonomials force-pushed the dev/emac-test-improvements branch from 72d310e to 1b922b5 Compare January 28, 2025 07:55
@multiplemonomials multiplemonomials force-pushed the dev/emac-test-improvements branch from 1b922b5 to d17f6ab Compare January 28, 2025 07:57
@multiplemonomials multiplemonomials force-pushed the dev/emac-mem-manager-improvements branch from f04a0ff to 714eeb3 Compare January 28, 2025 08:18
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