Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jul 23, 2021

Explain how to "steal" parameters from scripts/xtensa-build-all.sh

Explain how to compile natively.

Link the two sections with each other.

make platform_defconfig was obsolete, replace with -DINIT_CONFIG

Signed-off-by: Marc Herbert marc.herbert@intel.com

Explain how to "steal" parameters from scripts/xtensa-build-all.sh

Explain how to compile natively.

Link the two sections with each other.

`make platform_defconfig` was obsolete, replace with -DINIT_CONFIG

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review July 23, 2021 09:23
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@marc-hb btw there is also ./scripts/run-mocks.sh (which is a my convenience hack for checking mocks prior to pushing PRs).

@lgirdwood lgirdwood merged commit 141195e into thesofproject:master Jul 23, 2021
@marc-hb marc-hb deleted the unit-tests branch July 23, 2021 17:05
@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 25, 2021

btw there is also ./scripts/run-mocks.sh (which is a my convenience hack for checking mocks prior to pushing PRs).

... and that script unknown to me made me realize that what I wrote in this doc update is wrong: it is possible to run unit tests compiled with regular / host toolchain! In that case why would we not run these in CI?!? Fixed in: thesofproject/sof#4543

Example: Running tests for APL
==============================
You can also compile the unit tests with your native compiler. You won't
be able to _run_ the tests but this can be convenient to test
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is wrong, they can be run. Doc fix in #364

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.

4 participants