Skip to content

travis: Add job to build and test unix minimal port. #5227

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 13 commits into from
Oct 29, 2019

Conversation

dpgeorge
Copy link
Member

To test that test-suite can run with minimal features enabled.

@nevercast
Copy link
Contributor

Good idea. Is it worth making minimal configs for other ports to ensure they aren't depending on something that should be an optional feature?

@dpgeorge
Copy link
Member Author

Is it worth making minimal configs for other ports to ensure they aren't depending on something that should be an optional feature?

That's a lot of work, and since other (bare-metal) ports don't have automated tests running in Travis CI, I don't see how it's that useful. Running unix-minimal should be enough to check that the test suite can be run against almost any build, regardless of its config options.

@dpgeorge
Copy link
Member Author

Looks like this will require a lot of work to update the tests, to get unix-minimal to pass the tests...

And requires uintptr_t to declare the default version in py/mphal.h.
Only use % formatting when testing % itself, because only str.format is
guaranteed to be available on any port.
Because "version" will always be there, but "exit" may not.
So they can be automatically skipped if bytearray is not enabled.
Using bytes will test the same path for the buffer protocol in
py/objtype.c.
So they can be automatically skipped if slice is not enabled.
To test that unix minimal port builds, and that test-suite can run with
minimal features enabled.
@dpgeorge dpgeorge force-pushed the travis-unix-minimal-tests branch from 7864283 to 162016a Compare October 29, 2019 11:24
@dpgeorge dpgeorge merged commit 162016a into micropython:master Oct 29, 2019
@dpgeorge
Copy link
Member Author

All tests fixed, and merged.

tannewt added a commit to tannewt/circuitpython that referenced this pull request Aug 26, 2021
@dpgeorge dpgeorge deleted the travis-unix-minimal-tests branch July 12, 2022 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants