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

drop old ztest API #63723

Merged
merged 8 commits into from
Oct 20, 2023

Conversation

nashif
Copy link
Member

@nashif nashif commented Oct 10, 2023

  • ztest: enable ZTEST_NEW_API by default
  • tests: remove CONFIG_ZTEST_NEW_API in all tests
  • cmsis_dsp: remove handling of old ztest API
  • tests: sensor: do not depend on ZTEST_NEW_API
  • drivers: fake: remove special handling for new ztest APIs
  • ztest: remove old ztest api
  • doc:ztest: adapt ztest docs

@nashif nashif force-pushed the topic/remove_old_ztest_api branch 2 times, most recently from f8defee to 4f84e39 Compare October 10, 2023 12:55
Enable by default so we can remove kconfigs from tests/samples and keep
things working as before.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Remove all usage of CONFIG_ZTEST_NEW_API from tests and sample as this
is now enabled by default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Old ztest API is deprecated, so no need for the conditional code here.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Old ztest API is deprecated, so no need for the conditional code here.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Remove remaining usage and documenation of dropped kconfig that is now
the default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
nordicjm
nordicjm previously approved these changes Oct 17, 2023
@henrikbrixandersen
Copy link
Member

Looks like our bot missed the manifest change in this PR. Marking as DNM until zephyrproject-rtos/zscilib#55 is merged and the manifest updated.

@henrikbrixandersen henrikbrixandersen added DNM This PR should not be merged (Do Not Merge) manifest-zscilib labels Oct 17, 2023
@nashif
Copy link
Member Author

nashif commented Oct 17, 2023

Looks like our bot missed the manifest change in this PR. Marking as DNM until zephyrproject-rtos/zscilib#55 is merged and the manifest updated.

hmm, interesting, @carlescufi any idea why it was missed?

@carlescufi
Copy link
Member

Looks like our bot missed the manifest change in this PR. Marking as DNM until zephyrproject-rtos/zscilib#55 is merged and the manifest updated.

hmm, interesting, @carlescufi any idea why it was missed?

Just identified the issue, will send a PR

@microbuilder
Copy link
Member

Looks like our bot missed the manifest change in this PR. Marking as DNM until zephyrproject-rtos/zscilib#55 is merged and the manifest updated.

hmm, interesting, @carlescufi any idea why it was missed?

Merged

Remove usage of obsolete Kconfig in module.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
@nashif nashif dismissed stale reviews from henrikbrixandersen and nordicjm via 8080602 October 17, 2023 12:14
@nashif nashif force-pushed the topic/remove_old_ztest_api branch from 3b042cb to 8080602 Compare October 17, 2023 12:14
@nashif nashif removed the DNM This PR should not be merged (Do Not Merge) label Oct 17, 2023
@nashif nashif added this to the v3.6.0 milestone Oct 17, 2023
Copy link
Collaborator

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

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

Flash, VFS and MCUmgr OK.

Copy link
Contributor

@glarsennordic glarsennordic left a comment

Choose a reason for hiding this comment

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

conn_mgr changes LGTM. No comment on other changes

@carlescufi carlescufi merged commit 488e959 into zephyrproject-rtos:main Oct 20, 2023
24 of 25 checks passed
aescolar added a commit to aescolar/zephyr that referenced this pull request Oct 26, 2023
CONFIG_ZTEST_NEW_API was removed in
zephyrproject-rtos#63723

Tests still using it cause compliance failures.
So let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
aescolar added a commit to aescolar/zephyr that referenced this pull request Oct 26, 2023
CONFIG_ZTEST_NEW_API was removed in
zephyrproject-rtos#63723

Tests still using it cause compliance failures.
So let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
aescolar added a commit to aescolar/zephyr that referenced this pull request Oct 26, 2023
CONFIG_ZTEST_NEW_API was removed in
zephyrproject-rtos#63723

Tests still using it cause compliance failures.
So let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
aescolar added a commit to aescolar/zephyr that referenced this pull request Oct 26, 2023
CONFIG_ZTEST_NEW_API was removed in
zephyrproject-rtos#63723

Tests still using it cause compliance failures.
So let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
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.