Commit Graph

7 Commits

Author SHA1 Message Date
Jordan Yates
651ffb1d06 tests: build_all: modem: test compilation with connectivity
Ensure WiFi modems still build with the `CONNECTIVITY_WIFI_MGMT`
connectivity backend enabled.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-01-30 18:51:46 -05:00
Keith Packard
0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
Jordan Yates
ca6a329c9f tests: drivers: remove custom vnd,gpio inst
Remove the custom GPIO driver instantiation for `vnd,gpio` compatibles
in "build_all" tests. The devices are now instantiated in `gpio_test.c`.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2022-01-04 09:10:40 -05:00
Jordan Yates
df8a2c5366 tests: build_all: cleanup main files
Remove incorrect doxygen, unneeded prints and unused imports.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2021-10-07 14:28:56 -05:00
Marcin Niestroj
f5e5f7d6cd Revert "tests: drivers: build_all: add fake serial device for modem tests"
This reverts commit 9e58a1e475.

This change is in conflict with commit 94f7ed356f ("drivers: serial:
add a dummy driver for vnd,serial"). As a result two equal serial
devices are defines, resulting in link error.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-07-15 15:46:01 -05:00
Marcin Niestroj
9e58a1e475 tests: drivers: build_all: add fake serial device for modem tests
Serial device is needed for building drivers that use DEVICE_DT_GET().
None of the currently used modem drivers use that right now, but this is
about to change.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-07-15 11:48:00 -04:00
Kumar Gala
03235bb322 tests: drivers: build_all: split modem test out
Move modem tests to their own directory.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-06-09 09:17:35 -05:00