Commit Graph

6 Commits

Author SHA1 Message Date
Michał Barnaś
dae8efa692 ztest: remove the obsolete NULL appended to zassert macros
This commit removes the usage of NULL parameter as message in
zassert_* macros after making it optional

Signed-off-by: Michał Barnaś <mb@semihalf.com>
2022-09-09 07:05:38 -04:00
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
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