-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[microTVM][ARM][Zephyr] Add CMSIS dependencies in Zephyr project build #11362
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6c73000
Test with CMSIS build added
mehrdadh 83480fd
revert arm_cpu strategy changes
mehrdadh 724c09a
Address Andrew comments
mehrdadh b31a618
change copy to include
mehrdadh 8e256a4
add cmsis_path only as project option
mehrdadh d9770a1
trigger
mehrdadh adde2bc
Merge branch 'main' into microtvm/fix_cmsis_dep
mehrdadh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ def tvm_debug(request): | |
|
||
|
||
@pytest.fixture | ||
def temp_dir(board): | ||
def temp_dir(board, tvm_debug): | ||
parent_dir = pathlib.Path(os.path.dirname(__file__)) | ||
filename = os.path.splitext(os.path.basename(__file__))[0] | ||
board_workspace = ( | ||
|
@@ -76,4 +76,21 @@ def temp_dir(board): | |
if not os.path.exists(board_workspace.parent): | ||
os.makedirs(board_workspace.parent) | ||
|
||
return tempdir(board_workspace) | ||
keep_for_debug = tvm_debug if tvm_debug else None | ||
test_temp_dir = tempdir(custom_path=board_workspace, keep_for_debug=keep_for_debug) | ||
return test_temp_dir | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def skip_by_board(request, board): | ||
"""Skip test if board is in the list.""" | ||
if request.node.get_closest_marker("skip_boards"): | ||
if board in request.node.get_closest_marker("skip_boards").args[0]: | ||
pytest.skip("skipped on this board: {}".format(board)) | ||
|
||
|
||
def pytest_configure(config): | ||
config.addinivalue_line( | ||
"markers", | ||
"skip_by_board(board): skip test for the given board", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mehrdadh does this need to be skip_boards? |
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do we need this anymore?
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.
yeah, used it as default if project option is not passed
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 it might be good to avoid hidden env variable dependencies. they can be hard to track down. what do you think?
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.
makes sense, I removed the default value.