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:
Bjarki Arge Andreasen 2024-05-03 10:09:58 +02:00 committed by Carles Cufí
commit 2d0b24bff2
8 changed files with 121 additions and 0 deletions

View 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

View 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";
};
};

View 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

View 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";
};
};

View 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

View 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";
};
};

View 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

View 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";
};
};