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

add support to report size of compiled sketch #14

Closed
ianfixes opened this issue Jan 25, 2018 · 1 comment · Fixed by #344
Closed

add support to report size of compiled sketch #14

ianfixes opened this issue Jan 25, 2018 · 1 comment · Fixed by #344
Labels
enhancement New feature or request rubygem Ruby code is affected

Comments

@ianfixes
Copy link
Collaborator

https://arduino.stackexchange.com/questions/8058/how-can-arduino-source-code-be-tested-automatically-continuous-integration

@ianfixes ianfixes added enhancement New feature or request rubygem Ruby code is affected labels Jan 25, 2018
@ianfixes
Copy link
Collaborator Author

This can be found in the ret[:out] of ArduinoCmd.verify_sketch:

Sketch uses 22084 bytes (4%) of program storage space. Maximum is 524288 bytes.

To handle multiple locales, will probably need to parse this with a regex like

/^[^\d]+ (\d+) [^\(]+\((\d{1,3})%\) /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rubygem Ruby code is affected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant