apps:move test tools to testing.

1.memstress
2.ramtest
3.ramspeed
4.cachespeed

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2023-10-25 17:06:44 +08:00 committed by Mateusz Szafoni
parent 3ff49e86f5
commit 09bb3b5853
17 changed files with 58 additions and 58 deletions

View File

@ -3,27 +3,27 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
config SYSTEM_CACHESPEED config TESTING_CACHESPEED
bool "CACHE Speed Test" bool "CACHE Speed Test"
depends on ARCH_ICACHE && ARCH_DCACHE depends on ARCH_ICACHE && ARCH_DCACHE
default n default n
---help--- ---help---
Enable a simple CACHE speed test. Enable a simple CACHE speed test.
if SYSTEM_CACHESPEED if TESTING_CACHESPEED
config SYSTEM_CACHESPEED_PROGNAME config TESTING_CACHESPEED_PROGNAME
string "Program name" string "Program name"
default "cachespeed" default "cachespeed"
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
config SYSTEM_CACHESPEED_PRIORITY config TESTING_CACHESPEED_PRIORITY
int "CACHE speed test task priority" int "CACHE speed test task priority"
default 100 default 100
config SYSTEM_CACHESPEED_STACKSIZE config TESTING_CACHESPEED_STACKSIZE
int "CACHE speed test stack size" int "CACHE speed test stack size"
default DEFAULT_TASK_STACKSIZE default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/memstress/Make.defs # apps/testing/cachespeed/Make.defs
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -18,6 +18,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_SYSTEM_MEMORY_STRESS),) ifneq ($(CONFIG_TESTING_CACHESPEED),)
CONFIGURED_APPS += $(APPDIR)/system/memstress CONFIGURED_APPS += $(APPDIR)/testing/cachespeed
endif endif

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/cachespeed/Makefile # apps/testing/cachespeed/Makefile
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -26,10 +26,10 @@ ifneq ($(CONFIG_CACHESPEED_MONOTONIC_TIME),y)
CFLAGS += -DCACHESPEED_PERFTIME CFLAGS += -DCACHESPEED_PERFTIME
endif endif
PROGNAME = $(CONFIG_SYSTEM_CACHESPEED_PROGNAME) PROGNAME = $(CONFIG_TESTING_CACHESPEED_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_CACHESPEED_PRIORITY) PRIORITY = $(CONFIG_TESTING_CACHESPEED_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_CACHESPEED_STACKSIZE) STACKSIZE = $(CONFIG_TESTING_CACHESPEED_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_CACHESPEED) MODULE = $(CONFIG_TESTING_CACHESPEED)
MAINSRC = cachespeed_main.c MAINSRC = cachespeed_main.c

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/system/cachespeed/cachespeed_main.c * apps/testing/cachespeed/cachespeed_main.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -3,26 +3,26 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
config SYSTEM_MEMORY_STRESS config TESTING_MEMORY_STRESS
tristate "memory stress test" tristate "memory stress test"
default n default n
---help--- ---help---
Enable a memory stress test. Enable a memory stress test.
if SYSTEM_MEMORY_STRESS if TESTING_MEMORY_STRESS
config SYSTEM_MEMORY_STRESS_PROGNAME config TESTING_MEMORY_STRESS_PROGNAME
string "Program name" string "Program name"
default "memstress" default "memstress"
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
config SYSTEM_MEMORY_STRESS_PRIORITY config TESTING_MEMORY_STRESS_PRIORITY
int "MEMORY stress task priority" int "MEMORY stress task priority"
default 100 default 100
config SYSTEM_MEMORY_STRESS_STACKSIZE config TESTING_MEMORY_STRESS_STACKSIZE
int "MEMORY stress stack size" int "MEMORY stress stack size"
default DEFAULT_TASK_STACKSIZE default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/cachespeed/Make.defs # apps/testing/memstress/Make.defs
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -18,6 +18,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_SYSTEM_CACHESPEED),) ifneq ($(CONFIG_TESTING_MEMORY_STRESS),)
CONFIGURED_APPS += $(APPDIR)/system/cachespeed CONFIGURED_APPS += $(APPDIR)/testing/memstress
endif endif

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/memstress/Makefile # apps/testing/memstress/Makefile
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
# RAM speed test # RAM speed test
PROGNAME = $(CONFIG_SYSTEM_MEMORY_STRESS_PROGNAME) PROGNAME = $(CONFIG_TESTING_MEMORY_STRESS_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_MEMORY_STRESS_PRIORITY) PRIORITY = $(CONFIG_TESTING_MEMORY_STRESS_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_MEMORY_STRESS_STACKSIZE) STACKSIZE = $(CONFIG_TESTING_MEMORY_STRESS_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_MEMORY_STRESS) MODULE = $(CONFIG_TESTING_MEMORY_STRESS)
MAINSRC = memorystress_main.c MAINSRC = memorystress_main.c

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/system/memstress/memorystress_main.c * apps/testing/memstress/memorystress_main.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -3,26 +3,26 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
config SYSTEM_RAMSPEED config TESTING_RAMSPEED
tristate "RAM Speed Test" tristate "RAM Speed Test"
default n default n
---help--- ---help---
Enable a simple RAM speed test. Enable a simple RAM speed test.
if SYSTEM_RAMSPEED if TESTING_RAMSPEED
config SYSTEM_RAMSPEED_PROGNAME config TESTING_RAMSPEED_PROGNAME
string "Program name" string "Program name"
default "ramspeed" default "ramspeed"
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
config SYSTEM_RAMSPEED_PRIORITY config TESTING_RAMSPEED_PRIORITY
int "RAM speed test task priority" int "RAM speed test task priority"
default 100 default 100
config SYSTEM_RAMSPEED_STACKSIZE config TESTING_RAMSPEED_STACKSIZE
int "RAM speed test stack size" int "RAM speed test stack size"
default DEFAULT_TASK_STACKSIZE default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/ramtest/Make.defs # apps/testing/ramspeed/Make.defs
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -18,6 +18,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_SYSTEM_RAMTEST),) ifneq ($(CONFIG_TESTING_RAMSPEED),)
CONFIGURED_APPS += $(APPDIR)/system/ramtest CONFIGURED_APPS += $(APPDIR)/testing/ramspeed
endif endif

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/ramspeed/Makefile # apps/testing/ramspeed/Makefile
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
# RAM speed test # RAM speed test
PROGNAME = $(CONFIG_SYSTEM_RAMSPEED_PROGNAME) PROGNAME = $(CONFIG_TESTING_RAMSPEED_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_RAMSPEED_PRIORITY) PRIORITY = $(CONFIG_TESTING_RAMSPEED_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_RAMSPEED_STACKSIZE) STACKSIZE = $(CONFIG_TESTING_RAMSPEED_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_RAMSPEED) MODULE = $(CONFIG_TESTING_RAMSPEED)
MAINSRC = ramspeed_main.c MAINSRC = ramspeed_main.c

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/system/ramspeed/ramspeed_main.c * apps/testing/ramspeed/ramspeed_main.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -3,26 +3,26 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
config SYSTEM_RAMTEST config TESTING_RAMTEST
tristate "RAM Test" tristate "RAM Test"
default n default n
---help--- ---help---
Enable a simple RAM test. Enable a simple RAM test.
if SYSTEM_RAMTEST if TESTING_RAMTEST
config SYSTEM_RAMTEST_PROGNAME config TESTING_RAMTEST_PROGNAME
string "Program name" string "Program name"
default "ramtest" default "ramtest"
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
config SYSTEM_RAMTEST_PRIORITY config TESTING_RAMTEST_PRIORITY
int "RAM test task priority" int "RAM test task priority"
default 100 default 100
config SYSTEM_RAMTEST_STACKSIZE config TESTING_RAMTEST_STACKSIZE
int "RAM test stack size" int "RAM test stack size"
default DEFAULT_TASK_STACKSIZE default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/ramspeed/Make.defs # apps/testing/ramtest/Make.defs
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -18,6 +18,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_SYSTEM_RAMSPEED),) ifneq ($(CONFIG_TESTING_RAMTEST),)
CONFIGURED_APPS += $(APPDIR)/system/ramspeed CONFIGURED_APPS += $(APPDIR)/testing/ramtest
endif endif

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/system/ramtest/Makefile # apps/testing/ramtest/Makefile
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
# RAM test # RAM test
PROGNAME = $(CONFIG_SYSTEM_RAMTEST_PROGNAME) PROGNAME = $(CONFIG_TESTING_RAMTEST_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_RAMTEST_PRIORITY) PRIORITY = $(CONFIG_TESTING_RAMTEST_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_RAMTEST_STACKSIZE) STACKSIZE = $(CONFIG_TESTING_RAMTEST_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_RAMTEST) MODULE = $(CONFIG_TESTING_RAMTEST)
MAINSRC = ramtest.c MAINSRC = ramtest.c

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/system/ramtest/ramtest.c * apps/testing/ramtest/ramtest.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
@ -38,7 +38,7 @@
#include <nuttx/usb/usbdev_trace.h> #include <nuttx/usb/usbdev_trace.h>
#ifdef CONFIG_SYSTEM_RAMTEST #ifdef CONFIG_TESTING_RAMTEST
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@ -591,4 +591,4 @@ int main(int argc, FAR char *argv[])
return 0; return 0;
} }
#endif /* CONFIG_SYSTEM_RAMTEST */ #endif /* CONFIG_TESTING_RAMTEST */