Skip to content

Some shim_test clean up#1126

Merged
maxzhen merged 1 commit intoamd:mainfrom
hlaccabu:shim_clean
Feb 26, 2026
Merged

Some shim_test clean up#1126
maxzhen merged 1 commit intoamd:mainfrom
hlaccabu:shim_clean

Conversation

@hlaccabu
Copy link
Contributor

No description provided.

Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the shim_test infrastructure to improve maintainability and clarity. It consolidates test binary configuration by moving metadata (ELF names, expected status values) from constructor parameters into a centralized binary_info structure with an extra map field. Test tags are renamed to be more descriptive (e.g., "bad_timeout", "bad_addr", "bad_op" instead of generic "bad").

Changes:

  • Added extra field to binary_info struct for storing additional metadata
  • Simplified test class constructors by removing redundant parameters and using default arguments
  • Renamed test binary tags to be more descriptive of their purpose
  • Added std::move optimizations for temporary data
  • Removed unused variables and updated comments

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/shim_test/dev_info.h Added extra map field to binary_info struct for metadata storage
test/shim_test/dev_info.cpp Renamed test tags to descriptive names and populated extra field with ELF names and expected values
test/shim_test/io.h Simplified constructor signatures for test classes using default parameters
test/shim_test/io.cpp Updated constructors to read metadata from extra field, added std::move optimizations, updated comments
test/shim_test/io_test.cpp Updated test function calls with new tag names, removed unused variable, added std::move optimization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maxzhen maxzhen merged commit a1e7fa8 into amd:main Feb 26, 2026
5 checks passed
@hlaccabu hlaccabu deleted the shim_clean branch February 26, 2026 20:42
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