Skip to content

Commit

Permalink
tests: Provide the relevant fw_config.yaml for the tests requiring it
Browse files Browse the repository at this point in the history
A few test create dummy devices via DEVICE_DEFINE, and a few of them
have actual initialization dependencies which was - before - solved
through a fixed priority number for each devices.

Fix this now via a dedicated fw_config.yaml in relevant tests, where
the dev_id (provided to DEVICE_DEFINE) can be used to describe the
inialization node and its dependencies.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@proton.me>
  • Loading branch information
tbursztyka committed Jun 6, 2024
1 parent 350e55c commit 29a42d2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/drivers/ipm/fw_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
init:
ipm_console_send0:

Check warning on line 2 in tests/drivers/ipm/fw_config.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

tests/drivers/ipm/fw_config.yaml:2 wrong indentation: expected 2 but found 4
dependencies:

Check warning on line 3 in tests/drivers/ipm/fw_config.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

tests/drivers/ipm/fw_config.yaml:3 wrong indentation: expected 6 but found 8
- ipm_dummy0

Check warning on line 4 in tests/drivers/ipm/fw_config.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

tests/drivers/ipm/fw_config.yaml:4 wrong indentation: expected 10 but found 12

ipm_console_recv0:
dependencies:

Check warning on line 7 in tests/drivers/ipm/fw_config.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

tests/drivers/ipm/fw_config.yaml:7 wrong indentation: expected 6 but found 8
- ipm_dummy0
12 changes: 12 additions & 0 deletions tests/kernel/device/fw_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
init:
my_driver_priority_2:
dependencies:
- my_driver_priority_1

my_driver_priority_3:
dependencies:
- my_driver_priority_2

my_driver_priority_4:
dependencies:
- my_driver_priority_3
4 changes: 4 additions & 0 deletions tests/net/mld/fw_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
init:
net_test_null_iface:
dependencies:
- net_init

0 comments on commit 29a42d2

Please sign in to comment.