tests: drivers: gnss: gnss_api: Add overlay for emulated boards
Add overlay and conf for emulated boards allowing the test suite along with the emulated GNSS driver to be built and tested by CI. Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
This commit is contained in:
parent
fdda93fd99
commit
2d0b24bff2
8 changed files with 121 additions and 0 deletions
13
tests/drivers/gnss/gnss_api/boards/native_sim.conf
Normal file
13
tests/drivers/gnss/gnss_api/boards/native_sim.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2024 Trackunit Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GNSS_SATELLITES=y
|
||||
|
||||
# GPS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_0=1
|
||||
# GPS + GLONASS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_1=3
|
||||
# GPS + GLONASS + QZSS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_2=19
|
||||
# GPS + GLONASS + GALILEO + BEIDOU + QZSS + SBAS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_3=95
|
16
tests/drivers/gnss/gnss_api/boards/native_sim.overlay
Normal file
16
tests/drivers/gnss/gnss_api/boards/native_sim.overlay
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright 2024 Trackunit Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
gnss = &gnss;
|
||||
};
|
||||
|
||||
gnss: gnss {
|
||||
compatible = "zephyr,gnss-emul";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
13
tests/drivers/gnss/gnss_api/boards/native_sim_64.conf
Normal file
13
tests/drivers/gnss/gnss_api/boards/native_sim_64.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2024 Trackunit Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GNSS_SATELLITES=y
|
||||
|
||||
# GPS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_0=1
|
||||
# GPS + GLONASS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_1=3
|
||||
# GPS + GLONASS + QZSS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_2=19
|
||||
# GPS + GLONASS + GALILEO + BEIDOU + QZSS + SBAS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_3=95
|
16
tests/drivers/gnss/gnss_api/boards/native_sim_64.overlay
Normal file
16
tests/drivers/gnss/gnss_api/boards/native_sim_64.overlay
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright 2024 Trackunit Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
gnss = &gnss;
|
||||
};
|
||||
|
||||
gnss: gnss {
|
||||
compatible = "zephyr,gnss-emul";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
13
tests/drivers/gnss/gnss_api/boards/qemu_x86.conf
Normal file
13
tests/drivers/gnss/gnss_api/boards/qemu_x86.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2024 Trackunit Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GNSS_SATELLITES=y
|
||||
|
||||
# GPS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_0=1
|
||||
# GPS + GLONASS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_1=3
|
||||
# GPS + GLONASS + QZSS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_2=19
|
||||
# GPS + GLONASS + GALILEO + BEIDOU + QZSS + SBAS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_3=95
|
16
tests/drivers/gnss/gnss_api/boards/qemu_x86.overlay
Normal file
16
tests/drivers/gnss/gnss_api/boards/qemu_x86.overlay
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright 2024 Trackunit Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
gnss = &gnss;
|
||||
};
|
||||
|
||||
gnss: gnss {
|
||||
compatible = "zephyr,gnss-emul";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
18
tests/drivers/gnss/gnss_api/boards/qemu_x86_64.conf
Normal file
18
tests/drivers/gnss/gnss_api/boards/qemu_x86_64.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2024 Trackunit Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GNSS_SATELLITES=y
|
||||
|
||||
# GPS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_0=1
|
||||
# GPS + GLONASS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_1=3
|
||||
# GPS + GLONASS + QZSS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_2=19
|
||||
# GPS + GLONASS + GALILEO + BEIDOU + QZSS + SBAS
|
||||
CONFIG_TEST_ENABLED_SYSTEMS_3=95
|
||||
|
||||
# This emulated board runs real-time
|
||||
# Lower timeouts to prevent unnecessary waiting
|
||||
CONFIG_TEST_SEARCH_PERIOD=5
|
||||
CONFIG_TEST_FIX_TIMEOUT=1
|
16
tests/drivers/gnss/gnss_api/boards/qemu_x86_64.overlay
Normal file
16
tests/drivers/gnss/gnss_api/boards/qemu_x86_64.overlay
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright 2024 Trackunit Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
gnss = &gnss;
|
||||
};
|
||||
|
||||
gnss: gnss {
|
||||
compatible = "zephyr,gnss-emul";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue