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

location: twister+pytest test for native_sim and playback data #730

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mniestroj
Copy link
Collaborator

There are 3 runtime tests:

  • cellular + wifi
  • cellular only
  • wifi

all executed using native_sim platform and playback data.

Supersedes: #725

@mniestroj mniestroj changed the base branch from main to location-cellular-combined January 16, 2025 07:40
Copy link

github-actions bot commented Jan 16, 2025

Visit the preview URL for this PR (updated for commit d6dbd0c):

https://golioth-firmware-sdk-doxygen-dev--pr730-location-twist-i5zp8gfh.web.app

(expires Wed, 29 Jan 2025 11:29:31 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

@mniestroj mniestroj force-pushed the location-cellular-combined branch 3 times, most recently from c394b4a to 0463d0f Compare January 16, 2025 07:48
@mniestroj mniestroj force-pushed the location-twister-combined branch from b96c6c7 to e3addef Compare January 16, 2025 07:48
- CONFIG_GOLIOTH_WIFI_PLAYBACK=n
- CONFIG_GOLIOTH_SAMPLE_TWISTER_TEST=y
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
- CONFIG_GOLIOTH_CELLULAR_PLAYBACK=n
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- CONFIG_GOLIOTH_CELLULAR_PLAYBACK=n
- CONFIG_GOLIOTH_WIFI_PLAYBACK=n

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. Updated and retested locally with dev:

INFO    - 1/4 native_sim/native/64      sample.golioth.location                            NOT RUN (build)
INFO    -                                    sample.golioth.location                                                     NOT RUN      Test was built only
INFO    - 2/4 native_sim/native/64      sample.golioth.location.playback.wifi              PASSED (native 12.779s)
INFO    -                                    sample.golioth.location.playback.wifi.test_location                         PASSED      
INFO    - 3/4 native_sim/native/64      sample.golioth.location.playback.cellular          PASSED (native 27.618s)
INFO    -                                    sample.golioth.location.playback.cellular.test_location                     PASSED      
INFO    - 4/4 native_sim/native/64      sample.golioth.location.playback                   PASSED (native 37.775s)
INFO    -                                    sample.golioth.location.playback.test_location                              PASSED      

INFO    - 4 test scenarios (4 configurations) selected, 0 configurations filtered (0 by static filter, 0 at runtime).

@mniestroj mniestroj force-pushed the location-cellular-combined branch from 0463d0f to 3b33bd3 Compare January 21, 2025 19:02
@mniestroj mniestroj force-pushed the location-twister-combined branch from e3addef to 4ecc5ac Compare January 21, 2025 19:05
Base automatically changed from location-cellular-combined to main January 22, 2025 11:27
Rely on playback data to result in accurate location data. Wait for first 3
locations and match logged data with expected position.

Signed-off-by: Marcin Niestroj <[email protected]>
@mniestroj mniestroj force-pushed the location-twister-combined branch from 4ecc5ac to d6dbd0c Compare January 22, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants