Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: move core related applications to their own tests/core/ folder #19565

Merged
merged 2 commits into from
May 11, 2023

Conversation

aabadie
Copy link
Contributor

@aabadie aabadie commented May 10, 2023

Contribution description

This PR is similar as #19435, #19552, #19551 and #19564 but applied to core related test applications. There's no clear core_ naming scheme for these applications so maybe some were missed or added by mistake.

Testing procedure

  • Green CI
  • Check the right applications have been moved

Issues/PRs references

#15358, #19435, #19552, #19551 and #19564

@aabadie aabadie added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label May 10, 2023
@github-actions github-actions bot added Area: build system Area: Build system Area: doc Area: Documentation Area: tests Area: tests and testing framework labels May 10, 2023
@aabadie aabadie force-pushed the pr/tests/core_move branch from b9b77bb to e625b2e Compare May 10, 2023 08:36
@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 10, 2023
@aabadie aabadie force-pushed the pr/tests/core_move branch 2 times, most recently from e786ce4 to 4bc73b7 Compare May 10, 2023 09:04
@riot-ci
Copy link

riot-ci commented May 10, 2023

Murdock results

✔️ PASSED

cabe02c tests: move core related applications to tests/core/ subdirectory

Success Failures Total Runtime
6931 0 6931 09m:14s

Artifacts

Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

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

I wonder if the irq_cpp should rather be in a new tests/cpp (or maybe tests/cxx, as cpp could also mean c preprocessor).

But anyway, let's not have this discussion here. Once there is a tests/cxx folder, that could still be easily moved from tests/core to tests/cxx.

@aabadie
Copy link
Contributor Author

aabadie commented May 10, 2023

The cpp applications will be moved in tests/sys after #19566 is merged (but it's still broken now)

@aabadie
Copy link
Contributor Author

aabadie commented May 10, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented May 10, 2023

Merge conflict.

@aabadie aabadie force-pushed the pr/tests/core_move branch from 4bc73b7 to cabe02c Compare May 10, 2023 13:41
@aabadie
Copy link
Contributor Author

aabadie commented May 10, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented May 10, 2023

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@aabadie
Copy link
Contributor Author

aabadie commented May 10, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented May 10, 2023

Already running a review

bors bot added a commit that referenced this pull request May 10, 2023
19484: makefiles/arch/msp430.inc.mk: Fix compilation issues with GCC 12 r=maribu a=maribu

### Contribution description

This fixes the following compilation issues:

    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c: In function 'gpio_periph_mode':
    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c:95:15: error: array subscript 0 is outside array bounds of 'msp_port_isr_t[0]' [-Werror=array-bounds]
       95 |         sel = &(isrport->SEL);
          |               ^~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

by adding `CFLAGS += --param-min-pagesize=0` for GCC 12 (same issue as already fixed for AVR).

and:

    /usr/lib/gcc/msp430-elf/12.2.0/../../../../msp430-elf/bin/ld: warning: /home/maribu/Repos/software/RIOT/cpu/msp430_common/ldscripts/xfa.ld contains output sections; did you forget -T?

by adding the missing `-T`.

### Testing procedure

The following should still work:

- `make BOARD=msb-430 -C examples/hello-world`
- `make BOARD=msb-430 -C tests/xfa flash test`

### Issues/PRs references

None

19565: tests: move core related applications to their own tests/core/ folder r=aabadie a=aabadie



19568: tests: move remaining driver related applications to tests/drivers r=aabadie a=aabadie



19575: treewide: fix format specifiers r=maribu a=maribu

### Contribution description

This brings format specifiers and the passed type back into sync. This won't change observable behavior in one case, and won't even change machine code in the other. But formally, this fixes bugs.


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
@bors
Copy link
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request May 10, 2023
19484: makefiles/arch/msp430.inc.mk: Fix compilation issues with GCC 12 r=maribu a=maribu

### Contribution description

This fixes the following compilation issues:

    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c: In function 'gpio_periph_mode':
    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c:95:15: error: array subscript 0 is outside array bounds of 'msp_port_isr_t[0]' [-Werror=array-bounds]
       95 |         sel = &(isrport->SEL);
          |               ^~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

by adding `CFLAGS += --param-min-pagesize=0` for GCC 12 (same issue as already fixed for AVR).

and:

    /usr/lib/gcc/msp430-elf/12.2.0/../../../../msp430-elf/bin/ld: warning: /home/maribu/Repos/software/RIOT/cpu/msp430_common/ldscripts/xfa.ld contains output sections; did you forget -T?

by adding the missing `-T`.

### Testing procedure

The following should still work:

- `make BOARD=msb-430 -C examples/hello-world`
- `make BOARD=msb-430 -C tests/xfa flash test`

### Issues/PRs references

None

19565: tests: move core related applications to their own tests/core/ folder r=aabadie a=aabadie



Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
@bors
Copy link
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request May 10, 2023
19565: tests: move core related applications to their own tests/core/ folder r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
@bors
Copy link
Contributor

bors bot commented May 10, 2023

Build failed:

@maribu
Copy link
Member

maribu commented May 11, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented May 11, 2023

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.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit d362a8d into RIOT-OS:master May 11, 2023
@aabadie aabadie deleted the pr/tests/core_move branch May 11, 2023 12:26
@benpicco benpicco added this to the Release 2023.07 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: doc Area: Documentation 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: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants