Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dabekjakub committed Dec 4, 2023
1 parent f93f7d4 commit 043f24d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/ztest/virtualmemoryheaps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

project(virtualmemoryheaps)

message(PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
message(IMPORTANT PATH !!!!!!!!!!!!!!!!!!!!!!!!!="${PROJECT_SOURCE_DIR}/../../../include")
include_directories("${PROJECT_SOURCE_DIR}/../../../include")

find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
target_sources(testbinary PRIVATE main.c)
12 changes: 12 additions & 0 deletions test/ztest/virtualmemoryheaps/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "sof/lib/regions_mm.h"
#include <zephyr/fff.h>


ZTEST(vmh_heap, test_basic_memory_heap)
{
vmh_heap test_heap;
test_heap = *vmh_init_heap(NULL,0, 0, true);
zexpect_true(false);
}

ZTEST_SUITE(vmh_heap, NULL, NULL, NULL, NULL, NULL);
1 change: 1 addition & 0 deletions test/ztest/virtualmemoryheaps/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_ZTEST=y
4 changes: 4 additions & 0 deletions test/ztest/virtualmemoryheaps/testcase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests:
memorymanagment.virtualmemoryheaps:
tags: vmh
type: unit

0 comments on commit 043f24d

Please sign in to comment.