Skip to content

tests: Add tests for riotctrl_shell.loramac - #23054

Merged
miri64 merged 2 commits into
RIOT-OS:masterfrom
miri64:tests/enh/riotctrl_shell.loramac
Nov 4, 2026
Merged

miri64 merged 2 commits into
RIOT-OS:masterfrom
miri64:tests/enh/riotctrl_shell.loramac

Conversation

@miri64

@miri64 miri64 commented Nov 1, 2026

Copy link
Copy Markdown
Member

Contribution description

Another contribution to #22944

Provide tests for all currently untested ShellInteraction subclasses in riotctrl_shell to prevent future bitrot [...]

Testing procedure

The provided test should pass.

Issues/PRs references

Fixes parts of #22944.

Declaration of AI-Tools / LLMs usage:

AI-Tools / LLMs that were used are:

  • none

@miri64
miri64 requested review from Stopkaa and jia200x November 1, 2026 17:20
@github-actions github-actions Bot added Area: doc Area: Documentation Area: tests Area: tests and testing framework Area: sys Area: System labels Nov 1, 2026
@miri64 miri64 changed the title Tests/enh/riotctrl shell.loramac tests: Add tests for riotctrl_shell.loramac Nov 1, 2026
@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch 3 times, most recently from c2f97ea to f9fc761 Compare November 1, 2026 18:22
@miri64 miri64 added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 1, 2026
@riot-ci

riot-ci commented Nov 1, 2026 •

Copy link
Copy Markdown

Murdock results

✔️ PASSED

9fed264 tests: Add tests for riotctrl_shell.loramac

Success Failures Total Runtime
14097 0 14097 11m:39s

Artifacts

@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch from f9fc761 to 7394376 Compare November 1, 2026 18:43
@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch from 7394376 to 19ce24c Compare November 1, 2026 19:00
@AnnsAnns AnnsAnns added the AI: Not Used AI was stated to not be used in this PR/Issue label Nov 1, 2026
Comment thread tests/riotctrl_shell/loramac/Makefile Resolved
Comment thread tests/riotctrl_shell/loramac/Makefile Resolved
@Stopkaa

Stopkaa commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Tried to test it with a nucleo-wl55jc and get some linkage error since the test doesn't pull shell_cmds_default and instead pull shell_cmd_semtech-loramac directly which doesn't add fmt. Also there was a missuse of USEMODULE/USEPKG(this one found by Claude). This fixes it for me:

diff --git a/sys/shell/Makefile.dep b/sys/shell/Makefile.dep
index 91fda88b40..d72851eaf3 100644
--- a/sys/shell/Makefile.dep
+++ b/sys/shell/Makefile.dep
@@ -110,7 +110,6 @@ ifneq (,$(filter shell_cmds_default,$(USEMODULE)))
   endif
   ifneq (,$(filter semtech-loramac,$(USEPKG)))
     USEMODULE += shell_cmd_semtech-loramac
-    USEMODULE += fmt
   endif
   ifneq (,$(filter sntp,$(USEMODULE)))
     USEMODULE += shell_cmd_sntp
@@ -293,8 +292,9 @@ endif
 ifneq (,$(filter shell_cmd_saul_reg,$(USEMODULE)))
   USEMODULE += saul_reg
 endif
-ifneq (,$(filter shell_cmd_semtech-loramac,$(USEPKG)))
-  USEMODULE += semtech-loramac
+ifneq (,$(filter shell_cmd_semtech-loramac,$(USEMODULE)))
+  USEPKG += semtech-loramac
+  USEMODULE += fmt
 endif
 ifneq (,$(filter shell_cmd_sha1sum,$(USEMODULE)))
   USEMODULE += shell_cmd_vfs

@miri64

miri64 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Tried to test it with a nucleo-wl55jc and get some linkage error since the test doesn't pull shell_cmds_default and instead pull shell_cmd_semtech-loramac directly which doesn't add fmt. Also there was a missuse of USEMODULE/USEPKG(this one found by Claude). This fixes it for me:

diff --git a/sys/shell/Makefile.dep b/sys/shell/Makefile.dep
index 91fda88b40..d72851eaf3 100644
--- a/sys/shell/Makefile.dep
+++ b/sys/shell/Makefile.dep
@@ -110,7 +110,6 @@ ifneq (,$(filter shell_cmds_default,$(USEMODULE)))
   endif
   ifneq (,$(filter semtech-loramac,$(USEPKG)))
     USEMODULE += shell_cmd_semtech-loramac
-    USEMODULE += fmt
   endif
   ifneq (,$(filter sntp,$(USEMODULE)))
     USEMODULE += shell_cmd_sntp
@@ -293,8 +292,9 @@ endif
 ifneq (,$(filter shell_cmd_saul_reg,$(USEMODULE)))
   USEMODULE += saul_reg
 endif
-ifneq (,$(filter shell_cmd_semtech-loramac,$(USEPKG)))
-  USEMODULE += semtech-loramac
+ifneq (,$(filter shell_cmd_semtech-loramac,$(USEMODULE)))
+  USEPKG += semtech-loramac
+  USEMODULE += fmt
 endif
 ifneq (,$(filter shell_cmd_sha1sum,$(USEMODULE)))
   USEMODULE += shell_cmd_vfs

I remember that there was an issue with some boards when doing the dependencies like this (and yes, I also noticed the USEMODULE/USEPKG discrepency but thought they were aliased)... But I can try.

@miri64 miri64 added CI: full build disable CI build filter CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: full build disable CI build filter labels Nov 3, 2026
@miri64

miri64 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member Author

But I can try.

Murdock saw no issue.

@miri64 miri64 linked an issue Nov 3, 2026 that may be closed by this pull request
5 of 15 tasks
@miri64 miri64 removed a link to an issue Nov 3, 2026
5 of 15 tasks
@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch from 1e2a4ea to 8fa579c Compare November 3, 2026 22:11
@miri64

miri64 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Rebased to current master to resolve conflicts caused by the merging of #23051.

@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch from 8fa579c to c738484 Compare November 3, 2026 22:14
@miri64

miri64 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

And squashed

@mguetschow mguetschow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM then! Since Murdock runs fine, this should be good to go.

@mguetschow
mguetschow enabled auto-merge November 4, 2026 08:39
@mguetschow
mguetschow added this pull request to the merge queue Nov 4, 2026
@miri64

miri64 commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

While testing the build in #23067, I noticed that the ESP32 problem might actually be related to my local environment and not due to the mocking of periph_eeprom. Will investigate.

@miri64

miri64 commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Yepp, because I got an error about cpu/esp32/vendor/ld/esp32s3/memory.ld.in I assumed it had something to do with the eeprom, but turns out: I just had a stale version of esp32_sdk in by build/pkg 😅

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
@miri64
miri64 force-pushed the tests/enh/riotctrl_shell.loramac branch from c738484 to 9fed264 Compare November 4, 2026 09:31
@miri64
miri64 removed this pull request from the merge queue due to a manual request Nov 4, 2026
@miri64
miri64 enabled auto-merge November 4, 2026 09:31
@miri64
miri64 added this pull request to the merge queue Nov 4, 2026
Merged via the queue into RIOT-OS:master with commit 0164bf6 Nov 4, 2026
26 checks passed
@miri64

miri64 commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Thanks for all the reviews!

@miri64
miri64 deleted the tests/enh/riotctrl_shell.loramac branch November 4, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI: Not Used AI was stated to not be used in this PR/Issue Area: doc Area: Documentation Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants