tests/drivers: move all driver tests into own folder#19435
tests/drivers: move all driver tests into own folder#19435bors[bot] merged 1 commit intoRIOT-OS:masterfrom
Conversation
| endif | ||
| endif | ||
|
|
||
| ifneq (,$(filter tests_driver_%,$(APPLICATION))) |
There was a problem hiding this comment.
It is no longer needed to check if the given tests is a driver test. This is now done in the tests/drivers/Makefile.drivers_common
| @@ -0,0 +1,3 @@ | |||
| RIOTBASE ?= $(CURDIR)/../../.. | |||
| BOARD ?= samr21-xpro | |||
There was a problem hiding this comment.
According to the old tests/Makefile.tests_common; All driver tests are run on this board for some reason.
|
Maybe have a look at #15358 for the build system integration. Otherwise, I'm 👍 for this PR. |
367cd3a to
fb6a582
Compare
|
This needs a rebase |
fb6a582 to
7117c96
Compare
|
Looks good but I don't know what the problem is with the header guards check... |
|
Sorry, this needs another rebase... |
|
The problem with the header guard check comes from missing updates of symlinks with mrf24j40 and kw2xrf drivers. The following diff fixes the problem locally: diff --git a/tests/drivers/kw2xrf/common.h b/tests/drivers/kw2xrf/common.h
index e95bd2d8c6..618a21b4fc 120000
--- a/tests/drivers/kw2xrf/common.h
+++ b/tests/drivers/kw2xrf/common.h
@@ -1 +1 @@
-../ieee802154_hal/common.h
\ No newline at end of file
+../../ieee802154_hal/common.h
\ No newline at end of file
diff --git a/tests/drivers/kw2xrf/init_dev.c b/tests/drivers/kw2xrf/init_dev.c
index ddf5f5ff33..f4a4ab83e2 120000
--- a/tests/drivers/kw2xrf/init_dev.c
+++ b/tests/drivers/kw2xrf/init_dev.c
@@ -1 +1 @@
-../ieee802154_hal/init_devs.c
\ No newline at end of file
+../../ieee802154_hal/init_devs.c
\ No newline at end of file
diff --git a/tests/drivers/mrf24j40/common.h b/tests/drivers/mrf24j40/common.h
index e95bd2d8c6..618a21b4fc 120000
--- a/tests/drivers/mrf24j40/common.h
+++ b/tests/drivers/mrf24j40/common.h
@@ -1 +1 @@
-../ieee802154_hal/common.h
\ No newline at end of file
+../../ieee802154_hal/common.h
\ No newline at end of file
diff --git a/tests/drivers/mrf24j40/init_dev.c b/tests/drivers/mrf24j40/init_dev.c
index ddf5f5ff33..f4a4ab83e2 120000
--- a/tests/drivers/mrf24j40/init_dev.c
+++ b/tests/drivers/mrf24j40/init_dev.c
@@ -1 +1 @@
-../ieee802154_hal/init_devs.c
\ No newline at end of file
+../../ieee802154_hal/init_devs.c
\ No newline at end of file |
7117c96 to
08c707b
Compare
|
Not sure what's wrong on Murdock. The error message is |
|
Ah! It's probably failing because I overlooked tests/ieee802154_security/Makefile. [...]
include ../driver_netdev_common/Makefile.netdev.mkSince I'm no sure how to fix it. Simply correcting the location does not work as the Makefiles in * atwinc15x0, xbee |
That option is the least worst IMHO. I'd do that. |
1c2ae4a to
c68b1e6
Compare
|
I think it turned out cleaner than anticipated. For ease of review, it's in separate commit. I will squash after review. :) |
|
Murdock is still complaining: |
c68b1e6 to
14efca8
Compare
aabadie
left a comment
There was a problem hiding this comment.
Murdock is green and changes are good IMHO. Please squash!
ACK
14efca8 to
09a7b74
Compare
|
bors merge |
19435: tests/drivers: move all driver tests into own folder r=aabadie a=Teufelchen1 Hi! 🦅 ### Contribution description This moves all `tests/driver_*/` to `tests/drivers/<driver name>/`. Reason for change is purely esthetic 🐮 ### Testing procedure A passing CI should be enough - it should be (manually) checked that the new locations are still covered by it. `./dist/tools/compile_test/compile_like_murdock.py -b native -a tests/drivers/*` can be helpful as well. Co-authored-by: Teufelchen1 <[email protected]>
|
Build failed: |
|
Murdock failed and now this needs another rebase... |
09a7b74 to
bb76f13
Compare
|
bors merge |
|
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
|
Why are there still some $~> ls -1d tests/driver_*
tests/driver_htu21d
tests/driver_sdcard_spi
tests/driver_vl53l1x
tests/driver_vl53l1x_st_api
tests/driver_ws281x |
They were simply missed I think, even by the reviewer :) |
|
These are pretty old test applications. Therefore, I was wondering whether there was a special reason for not moving them to |
|
I'll open a PR in a moment to fix the problem |
|
BTW, it is a very nice cleanup that makes the navigation in test applications much easier. I wished we had such a change for |
|
Actually, all driver applications in tests were moved. It's just that the directories remains if they contain artifacts. Use |
Hi! 🦅
Contribution description
This moves all
tests/driver_*/totests/drivers/<driver name>/.Reason for change is purely esthetic 🐮
Testing procedure
A passing CI should be enough - it should be (manually) checked that the new locations are still covered by it.
./dist/tools/compile_test/compile_like_murdock.py -b native -a tests/drivers/*can be helpful as well.