-
Notifications
You must be signed in to change notification settings - Fork 472
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
TestRunner code cleanup #8571
base: master
Are you sure you want to change the base?
TestRunner code cleanup #8571
Conversation
Signed-off-by: Akshay Tondak <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good start. Some comments.
In the next iteration, we should separate out the boiler plate code, like "init_hw_context", "init_BO" etc. All these can live in XBValidateUtils
@@ -20,7 +21,6 @@ namespace xq = xrt_core::query; | |||
// System - Include Files | |||
#include <fstream> | |||
#include <iostream> | |||
#include <regex> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for cleaning up includes as well!
/* | ||
* search for xclbin for a legacy platform | ||
*/ | ||
std::string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good time to remove dead code. Let's remove this function and any mention of it
@@ -3,6 +3,7 @@ | |||
// ------ I N C L U D E F I L E S ------------------------------------------- | |||
// Local - Include Files | |||
#include "TestBist.h" | |||
#include "TestValidateUtilities.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you ask Max if this is still a valid test? If not, let's remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Max pointed to a confirmation from @chvamshi-xilinx
Waiting for reply to decide on this clean-up
@@ -3,6 +3,7 @@ | |||
// ------ I N C L U D E F I L E S ------------------------------------------- | |||
// Local - Include Files | |||
#include "TestVcuKernel.h" | |||
#include "TestValidateUtilities.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this test case
Problem solved by the commit
This code cleans up the TestRunner class by moving all the APIs which do not belong there to the TestValidateUtilities namespace.
This code clean-up is an effort towards building the runner recipe based xrt-smi validate test. This will facilitate the following:
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
https://jira.xilinx.com/browse/VITIS-13774
Discovered to internal analysis of Validate Tests.
How problem was solved, alternative solutions (if any) and why they were rejected
The problem was solved by moving the mentioned APIs out of the class and altering the usage points of these APIs to have appropriate scopes.
Risks (if any) associated the changes in the commit
None
What has been tested and how, request additional testing if necessary
Tested by running all xrt-smi validate tests on krackenmachine
Documentation impact (if any)
None