-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Exporter tests] Export only #3205
Conversation
…ave build functions
187bb0a
to
76554fa
Compare
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.
Looks fine to me, just had one question if you get a sec.
@@ -19,7 +19,8 @@ | |||
from tools.export import EXPORTERS | |||
|
|||
SUPPORTED_TOOLCHAINS = ["ARM", "IAR", "GCC_ARM"] | |||
SUPPORTED_IDES = ["iar", "uvision", "make_gcc_arm", "make_iar", "make_armc5"] | |||
SUPPORTED_IDES = [exp for exp in EXPORTERS.keys() if exp != "cmsis" and exp != "zip"] |
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.
Is there a reason why "cmsis" and "zip" exporters aren't being listed in the supported_ides
? Do they lack build steps?
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.
Yes.
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 we introspect the class then to see if there's a build function and filter based on that?
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.
Further, their generate functions are just bizarre. Zip returns True and CMSIS exports a useless .cpdsc (this one is ust experimental right now).
If we did that, then those others that don't have a build (kds, etc) wouldn't be allowed to do the just exporting part (which is the point of this pr).
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 see. So CMSIS is being excluded now because its experimental, and it sounds like Zip may need to be updated?
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.
Zip just does weird stuff for the online IDE, I 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.
Ok, it sounds like these two exporters truly are just strange. In that case the way it's implemented now isn't an issue. 👍
Args: | ||
config - the json object imported from the file. | ||
ides - List of IDES to export to | ||
""" |
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.
Yay for docs! 😄
No CI is hitting this functionality in this script yet, so should be OK to merge. |
Description
Exporter build tests for exporters that have no build function (simplicity, kds, etc) will be tested for their ability to export with no tracebacks.
(Additionally added prettier printing organization for results).
Status
READY
Todos