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

[Exporter tests] Export only #3205

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

sarahmarshy
Copy link
Contributor

@sarahmarshy sarahmarshy commented Nov 4, 2016

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

@sarahmarshy sarahmarshy changed the title [Exporter tests] Capable of testing export only to IDEs that do not h… [Exporter tests] Export only Nov 4, 2016
@sarahmarshy sarahmarshy force-pushed the export-build-only-export branch from 187bb0a to 76554fa Compare November 4, 2016 20:53
Copy link
Contributor

@bridadan bridadan left a 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"]
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor

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?

Copy link
Contributor Author

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).

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Yay for docs! 😄

@bridadan
Copy link
Contributor

bridadan commented Nov 4, 2016

No CI is hitting this functionality in this script yet, so should be OK to merge.

@sg- sg- merged commit ab76f10 into ARMmbed:master Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants