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

Cmocka unit tests for all platforms #291

Closed
jajanusz opened this issue Sep 1, 2018 · 4 comments
Closed

Cmocka unit tests for all platforms #291

jajanusz opened this issue Sep 1, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jajanusz
Copy link
Contributor

jajanusz commented Sep 1, 2018

I made cmocka fork that enables us to build cmocka for any compiler and platform that supports stdlib, you can read how to build here: https://github.com/jajanusz/cmocka/blob/master/README.md#compiling-for-embedded

I tested it with xtensa compiler, it works for all platforms - apl, cnl, etc
However our baytrail toolchain is missing std lib that is essential for cmocka, but if we will have richer toolchains we will be able to have cmocka for these platforms also.

@lgirdwood Should it be for example in thesofproject/{cmocka,tools,whatever} repo instead of in my repo? If so please put it wherever is suitable.

@jajanusz jajanusz added the enhancement New feature or request label Sep 1, 2018
@jajanusz
Copy link
Contributor Author

jajanusz commented Sep 3, 2018

@lgirdwood I'd like to update the wiki about unit tests - will you move our custom cmocka somewhere else or can I use my link eveywhere?

@lgirdwood
Copy link
Member

@jajanusz please adds the cmocka examples and docs to sof-docs. I've also added xtensa-newlib to github that we can use as our C library for tests. @xiulipan will be able to help adding newlib and cmocka testing as part of Docker CI when he is free.

@mengdonglin
Copy link
Collaborator

@jajanusz Could you share any update?

@jajanusz
Copy link
Contributor Author

Closing, #736 is more specific

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

No branches or pull requests

3 participants