-
Notifications
You must be signed in to change notification settings - Fork 1
tests: Add board qualification tests for user LEDs. #91
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
Merged
nedseb
merged 4 commits into
feature/board-qualification-framework
from
feature/board-leds
Mar 13, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f4f04e9
tests: Add board qualification tests for user LEDs.
nedseb 955f174
tests: Add pre_prompt to LED tests and align white duration.
nedseb d1a3a2c
tests: Remove unnecessary pre_prompt pauses between LED tests.
nedseb c4c4945
tests: Rephrase pre_prompt to clarify Enter starts the test.
nedseb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| type: board | ||
| name: "board_leds" | ||
|
|
||
| tests: | ||
| - name: "LED RED on/off" | ||
| action: hardware_script | ||
| pre_prompt: "Appuyez sur Entrée pour lancer le test LED RGB, puis observez la carte." | ||
| script: | | ||
|
nedseb marked this conversation as resolved.
|
||
| from machine import Pin | ||
| from time import sleep_ms | ||
| led = Pin("LED_RED", Pin.OUT) | ||
| led.on() | ||
| sleep_ms(1000) | ||
| led.off() | ||
| result = True | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED RED visible" | ||
| action: manual | ||
| prompt: "La LED rouge s'est-elle allumée puis éteinte ?" | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED GREEN on/off" | ||
| action: hardware_script | ||
| script: | | ||
|
nedseb marked this conversation as resolved.
|
||
| from machine import Pin | ||
| from time import sleep_ms | ||
| led = Pin("LED_GREEN", Pin.OUT) | ||
| led.on() | ||
| sleep_ms(1000) | ||
| led.off() | ||
| result = True | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED GREEN visible" | ||
| action: manual | ||
| prompt: "La LED verte s'est-elle allumée puis éteinte ?" | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED BLUE on/off" | ||
| action: hardware_script | ||
| script: | | ||
|
nedseb marked this conversation as resolved.
|
||
| from machine import Pin | ||
| from time import sleep_ms | ||
| led = Pin("LED_BLUE", Pin.OUT) | ||
| led.on() | ||
| sleep_ms(1000) | ||
| led.off() | ||
| result = True | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED BLUE visible" | ||
| action: manual | ||
| prompt: "La LED bleue s'est-elle allumée puis éteinte ?" | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "RGB LED full cycle" | ||
|
nedseb marked this conversation as resolved.
|
||
| action: hardware_script | ||
| script: | | ||
| from machine import Pin | ||
| from time import sleep_ms | ||
| r = Pin("LED_RED", Pin.OUT) | ||
| g = Pin("LED_GREEN", Pin.OUT) | ||
| b = Pin("LED_BLUE", Pin.OUT) | ||
| for led in [r, g, b]: | ||
| led.on() | ||
| sleep_ms(500) | ||
| led.off() | ||
| # White = all on | ||
| r.on(); g.on(); b.on() | ||
| sleep_ms(500) | ||
| r.off(); g.off(); b.off() | ||
|
nedseb marked this conversation as resolved.
|
||
| result = True | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "RGB LED full cycle visible" | ||
| action: manual | ||
| prompt: "La LED a-t-elle affiché rouge, vert, bleu, puis blanc ?" | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED BLE on/off" | ||
|
nedseb marked this conversation as resolved.
|
||
| action: hardware_script | ||
| pre_prompt: "Appuyez sur Entrée pour lancer le test LED BLE, puis observez la carte." | ||
| script: | | ||
| from machine import Pin | ||
| from time import sleep_ms | ||
| led = Pin("LED_BLE", Pin.OUT) | ||
| led.on() | ||
| sleep_ms(1000) | ||
| led.off() | ||
| result = True | ||
| expect_true: true | ||
| mode: [hardware] | ||
|
|
||
| - name: "LED BLE visible" | ||
| action: manual | ||
| prompt: "La LED BLE (bleue) s'est-elle allumée puis éteinte ?" | ||
| expect_true: true | ||
| mode: [hardware] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.