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
3 changes: 2 additions & 1 deletion testing/libc/arch_libc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ if(CONFIG_TESTING_ARCH_LIBC)
MODULE
${CONFIG_TESTING_ARCH_LIBC}
SRCS
arch_libc_test_main.c)
arch_libc_test_main.c
arch_libc_string.c)
endif()
16 changes: 16 additions & 0 deletions testing/libc/arch_libc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ config TESTING_ARCH_LIBC_STRCPY
bool "test strcpy"
default y

config TESTING_ARCH_LIBC_STRING
bool "string and memory function suite"
default y
---help---
Correctness across alignments, sizes, overlaps and terminator
placement for the string and memory functions a machine
directory may override, plus a speed report for each.

config TESTING_ARCH_LIBC_STRING_BUFSIZE
int "string suite buffer size"
default 262144
depends on TESTING_ARCH_LIBC_STRING
---help---
Each of the two test buffers, in bytes. The large-block
speed scenarios use a quarter of this.

config TESTING_ARCH_LIBC_PROGNAME
string "Program name"
default "arch_libctest"
Expand Down
4 changes: 4 additions & 0 deletions testing/libc/arch_libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ MODULE = $(CONFIG_TESTING_ARCH_LIBC)

MAINSRC = arch_libc_test_main.c

ifeq ($(CONFIG_TESTING_ARCH_LIBC_STRING),y)
CSRCS += arch_libc_string.c
endif

include $(APPDIR)/Application.mk
Loading
Loading