Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ examples/AN00218_app_hires_DAS_fixed/doc/pdf/AN00218.pdf
**/*.local.*
**/*.local.*/


# Unit test runners
**/runners/*

Expand All @@ -49,3 +48,6 @@ examples/AN00218_app_hires_DAS_fixed/doc/pdf/AN00218.pdf
.waf-*/
build/
build.xcore

# Python cache information
lib_mic_array.egg-info
31 changes: 0 additions & 31 deletions tests/test_deps.cmake

This file was deleted.

25 changes: 4 additions & 21 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
cmake_minimum_required(VERSION 3.21)
include($ENV{XMOS_CMAKE_PATH}/xcommon.cmake)

project(tests-unit )
project(tests-unit)
set(XMOS_SANDBOX_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)

include(${CMAKE_CURRENT_LIST_DIR}/../test_deps.cmake)

set(APP_HW_TARGET XK-EVK-XU316)

# Manually grab sources since we want to append unity to them
file(GLOB_RECURSE APP_C_SRCS RELATIVE ${CMAKE_CURRENT_LIST_DIR} "src/*.c")
file(GLOB_RECURSE APP_CXX_SRCS RELATIVE ${CMAKE_CURRENT_LIST_DIR} "src/*.cpp")

# Modify the included sources so they are relative
set(UNITY_C_SRCS_RELATIVE "")
foreach(ITEM IN LISTS UNITY_C_SRCS)
string(REPLACE "${CMAKE_CURRENT_LIST_DIR}/" "" RELATIVE_ITEM "${ITEM}")
list(APPEND UNITY_C_SRCS_RELATIVE ${RELATIVE_ITEM})
endforeach()

list(APPEND APP_C_SRCS ${UNITY_C_SRCS_RELATIVE})

set(APP_INCLUDES src)
set(APP_DEPENDENT_MODULES "lib_mic_array" "lib_unity(2.5.2)")
set(APP_COMPILER_FLAGS -O2
-g
-report
Expand All @@ -30,9 +16,6 @@ set(APP_COMPILER_FLAGS -O2
-Wno-unknown-pragmas
-Wno-format
-fxscope
${UNITY_FLAGS})

set(APP_INCLUDES ${UNITY_INCLUDES}
src)
-DUNITY_INCLUDE_CONFIG_H=1)

XMOS_REGISTER_APP()