Skip to content

tests: move remaining driver related applications to tests/drivers#19568

Merged
bors[bot] merged 1 commit intoRIOT-OS:masterfrom
aabadie:pr/tests/driver_move_remaining
May 11, 2023
Merged

tests: move remaining driver related applications to tests/drivers#19568
bors[bot] merged 1 commit intoRIOT-OS:masterfrom
aabadie:pr/tests/driver_move_remaining

Conversation

@aabadie
Copy link
Copy Markdown
Contributor

@aabadie aabadie commented May 10, 2023

Contribution description

While working on other similar PRs, I noticed that some test application related to driver modules (mtd*, disp_dev, touch_dev, saul*) were still located in tests/ although they could be moved to tests/drivers as well.

Testing procedure

Green CI

Issues/PRs references

follow-up of #19435

@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: doc Area: Documentation Area: tests Area: tests and testing framework labels May 10, 2023
@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
@riot-ci
Copy link
Copy Markdown

riot-ci commented May 10, 2023

Murdock results

✔️ PASSED

aebbd01 tests: move remaining driver related applications to tests/drivers

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

Artifacts

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented May 10, 2023

bors merge

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

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 <[email protected]>
Co-authored-by: Alexandre Abadie <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented May 10, 2023

bors merge

@bors
Copy link
Copy Markdown
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 <[email protected]>
Co-authored-by: Alexandre Abadie <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request May 10, 2023
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: Alexandre Abadie <[email protected]>
Co-authored-by: Marian Buschsieweke <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request May 10, 2023
19568: tests: move remaining driver related applications to tests/drivers r=aabadie a=aabadie



19574: cpu/stm32/periph_gpio: reset PU/PD for ADC channels r=maribu a=gschorcht

### Contribution description

This PR provides a small fix that is relevant when a GPIO has been used as input/output with a pull resistor before it is initialized as an ADC channel.

The PU/PD configuration has to be `0b00` for analog outputs which is corresponds to the reset state. However, if the GPIO is not in the reset state but was used digital input/output with any pull resistor, the PU/PD configuration has also to be reset to use it as ADC channel.

### Testing procedure

- Green CI
- The `periph_adc` test application should still work for any board that supports the `periph_adc` feature.

### Issues/PRs references



Co-authored-by: Alexandre Abadie <[email protected]>
Co-authored-by: Gunar Schorcht <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 10, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request May 10, 2023
19568: tests: move remaining driver related applications to tests/drivers r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 10, 2023

Build failed:

@maribu
Copy link
Copy Markdown
Member

maribu commented May 11, 2023

bors merge

@bors
Copy link
Copy Markdown
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/driver_move_remaining 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: 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