-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: implement tests for native mutex and cond API
JIRA: RTOS-870
- Loading branch information
1 parent
022f090
commit ab7a721
Showing
4 changed files
with
1,207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Custom name as LOCAL_DIR is auto-reset by binary.mk | ||
MY_LOCAL_DIR := $(call my-dir) | ||
|
||
SYS_UNIT_TESTS := | ||
|
||
# Quick template for adding sys tests from subdir (makes test-sys-xxx binary from xxx/*.c) | ||
# $(eval $(call add_sys_test,NAME[,LOCAL_LDFLAGS][,LOCAL_CFLAGS])) | ||
define add_test_sys | ||
NAME := test-sys-$(1) | ||
SYS_UNIT_TESTS += test-sys-$(1) | ||
SRCS := $(wildcard $(MY_LOCAL_DIR)$(1)/*.c) | ||
DEP_LIBS := unity | ||
LOCAL_CFLAGS := -fno-builtin $(3) | ||
LOCAL_LDFLAGS := $(2) | ||
|
||
include $(binary.mk) | ||
endef | ||
|
||
$(eval $(call add_test_sys,cond)) | ||
$(eval $(call add_test_sys,mutex)) |
Oops, something went wrong.