Skip to content

tools/toolhains - Test for flag passing in constructor #5182

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

Merged
merged 2 commits into from
Sep 29, 2017

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy theotherjimmy commented Sep 22, 2017

Metadata

Fixes #5181

Descirption

This PR moves the passing of ld flags when compiling with IAR to the
constructor.

This PR also adds tests that certify that all toolchains pass all
arguments from their build profiles both:

  • In the constructor
  • On the command line invocation

This is stronger than the prior guarantee, which was: The compilers (C,
C++, Assembler) all pass their build profile arguments to the command
line invocation.

Testing

  • Manual verification that the test fail when the aforementioned conditions are not met. You can verify for yourself by checking out just the first commit in this PR.
  • Travis CI passing (This is where these tests run)

assert compile_cmd, to_compile
for parameter in profile['ld']:
print(any(parameter in cmd[0][0] for cmd in compile_cmd))
assert True
Copy link
Contributor

Choose a reason for hiding this comment

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

line 152 leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. but harmless.

@theotherjimmy
Copy link
Contributor Author

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1429

All builds and test passed!

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.

3 participants