Commit Graph

7 Commits

Author SHA1 Message Date
Yuval Peress
e59ee182f8 ztest: mock: migrate pinctrl/api to fff
Remove dependency on ztest mock and move the tests over to fff.

Signed-off-by: Yuval Peress <peress@google.com>
2022-07-25 15:15:53 +02:00
Yuval Peress
194f786295 tests: pinctrl: run clang-format
Run clang-format on main.c for easier review diffs

Signed-off-by: Yuval Peress <peress@google.com>
2022-07-25 15:15:53 +02:00
Yuval Peress
404c32b86a tests: pinctrl: Convert to new Ztest API
Migrate the test to the new ztest API

Signed-off-by: Yuval Peress <peress@google.com>
2022-07-25 15:15:53 +02:00
Gerard Marull-Paretas
ade7ccb918 tests: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all tests to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 20:02:14 +02:00
Flavio Ceolin
fad97b7fff tests: pinctrl: Fix typo on test name
s/derivers/drivers/g

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2022-02-02 09:21:07 -05:00
Gerard Marull-Paretas
c0fff657c5 pinctrl: use groupN instead of pinsN for groups
The pinsN group name can be a confusing in some circumstances, so change
it to groupN. Some platforms (e.g. nrf or gd32) are already using
groupN. Documentation and API tests have been updated.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-01-01 07:39:08 -05:00
Gerard Marull-Paretas
a578bb70b6 tests: drivers: pinctrl: add tests for API
Add a set of tests to check the API behavior. The API tests can only run
on a platform that does not have an actual pinctrl driver, e.g.
native_posix. The test itself implements a pinctrl mock driver and
provides the required "pinctrl_soc.h" header with required types/macros.
The implementation is used in the tests to verify the behavior of the
API or Devicetree macros.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-10-25 15:26:47 -05:00