tests: drivers: build_all: Add a build_all test for crypto

The test targets the following devices at this time.

- atmel,ataes132a

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2024-09-28 11:37:37 +09:00 committed by Carles Cufí
commit 60002865c7
6 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# Copyright (c) 2024 TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(build_all)
target_sources(app PRIVATE src/main.c)

View file

@ -0,0 +1,24 @@
/*
* Copyright (c) 2024 TOKITA Hiroshi
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/i2c/i2c.h>
/ {
test {
#address-cells = <1>;
#size-cells = <1>;
test_i2c: i2c@11112222 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,i2c";
reg = <0x11112222 0x1000>;
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
#include "i2c.dtsi"
};
};
};

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2024 TOKITA Hiroshi
* SPDX-License-Identifier: Apache-2.0
*/
/****************************************
* PLEASE KEEP REG ADDRESSES SEQUENTIAL *
***************************************/
ataes132a@0 {
compatible = "atmel,ataes132a";
reg = <0x0>;
status = "okay";
};

View file

@ -0,0 +1,2 @@
CONFIG_CRYPTO=y
CONFIG_I2C=y

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2024 TOKITA Hiroshi
* SPDX-License-Identifier: Apache-2.0
*/
int main(void)
{
return 0;
}

View file

@ -0,0 +1,11 @@
# Copyright (c) 2024 TOKITA hiroshi
# SPDX-License-Identifier: Apache-2.0
tests:
drivers.crypto.build:
tags:
- drivers
- crypto
build_only: true
platform_allow:
- native_sim