Commit 2a4332ba authored by Kamil Paszkiet's avatar Kamil Paszkiet Committed by David Leach
Browse files

scripts: tests: Blackbox test expansion - error



Adds tests related to filter flags:
--overflow-as-errors

Signed-off-by: default avatarKamil Paszkiet <kamilx.paszkiet@intel.com>
parent 8d7982cd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(integration)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
+1 −0
Original line number Diff line number Diff line
CONFIG_ZTEST=y
+3 −0
Original line number Diff line number Diff line
&dram0 {
        reg = < 0x100000 DT_SIZE_M(1) >;
};
+26 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/ztest.h>


ZTEST_SUITE(a1_1_tests, NULL, NULL, NULL, NULL, NULL);

/**
 * @brief Test Asserts
 *
 * This test verifies various assert macros provided by ztest.
 *
 */
ZTEST(a1_1_tests, test_assert)
{
	zassert_true(1, "1 was false");
	zassert_false(0, "0 was true");
	zassert_is_null(NULL, "NULL was not NULL");
	zassert_not_null("foo", "\"foo\" was NULL");
	zassert_equal(1, 1, "1 was not equal to 1");
	zassert_equal_ptr(NULL, NULL, "NULL was not equal to NULL");
}
+8 −0
Original line number Diff line number Diff line
tests:
  always_overflow.dummy:
    platform_allow:
      - native_posix
      - qemu_x86
      - qemu_x86_64
    integration_platforms:
      - native_posix
Loading