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:
parent
3ff49e86f5
commit
09bb3b5853
@ -3,27 +3,27 @@
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config SYSTEM_CACHESPEED
|
||||
config TESTING_CACHESPEED
|
||||
bool "CACHE Speed Test"
|
||||
depends on ARCH_ICACHE && ARCH_DCACHE
|
||||
default n
|
||||
---help---
|
||||
Enable a simple CACHE speed test.
|
||||
|
||||
if SYSTEM_CACHESPEED
|
||||
if TESTING_CACHESPEED
|
||||
|
||||
config SYSTEM_CACHESPEED_PROGNAME
|
||||
config TESTING_CACHESPEED_PROGNAME
|
||||
string "Program name"
|
||||
default "cachespeed"
|
||||
---help---
|
||||
This is the name of the program that will be used when the NSH ELF
|
||||
program is installed.
|
||||
|
||||
config SYSTEM_CACHESPEED_PRIORITY
|
||||
config TESTING_CACHESPEED_PRIORITY
|
||||
int "CACHE speed test task priority"
|
||||
default 100
|
||||
|
||||
config SYSTEM_CACHESPEED_STACKSIZE
|
||||
config TESTING_CACHESPEED_STACKSIZE
|
||||
int "CACHE speed test stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
|
@ -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
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,6 +18,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifneq ($(CONFIG_SYSTEM_MEMORY_STRESS),)
|
||||
CONFIGURED_APPS += $(APPDIR)/system/memstress
|
||||
ifneq ($(CONFIG_TESTING_CACHESPEED),)
|
||||
CONFIGURED_APPS += $(APPDIR)/testing/cachespeed
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# apps/system/cachespeed/Makefile
|
||||
# apps/testing/cachespeed/Makefile
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -26,10 +26,10 @@ ifneq ($(CONFIG_CACHESPEED_MONOTONIC_TIME),y)
|
||||
CFLAGS += -DCACHESPEED_PERFTIME
|
||||
endif
|
||||
|
||||
PROGNAME = $(CONFIG_SYSTEM_CACHESPEED_PROGNAME)
|
||||
PRIORITY = $(CONFIG_SYSTEM_CACHESPEED_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_SYSTEM_CACHESPEED_STACKSIZE)
|
||||
MODULE = $(CONFIG_SYSTEM_CACHESPEED)
|
||||
PROGNAME = $(CONFIG_TESTING_CACHESPEED_PROGNAME)
|
||||
PRIORITY = $(CONFIG_TESTING_CACHESPEED_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_CACHESPEED_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_CACHESPEED)
|
||||
|
||||
MAINSRC = cachespeed_main.c
|
||||
|
@ -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
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
@ -3,26 +3,26 @@
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config SYSTEM_MEMORY_STRESS
|
||||
config TESTING_MEMORY_STRESS
|
||||
tristate "memory stress test"
|
||||
default n
|
||||
---help---
|
||||
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"
|
||||
default "memstress"
|
||||
---help---
|
||||
This is the name of the program that will be used when the NSH ELF
|
||||
program is installed.
|
||||
|
||||
config SYSTEM_MEMORY_STRESS_PRIORITY
|
||||
config TESTING_MEMORY_STRESS_PRIORITY
|
||||
int "MEMORY stress task priority"
|
||||
default 100
|
||||
|
||||
config SYSTEM_MEMORY_STRESS_STACKSIZE
|
||||
config TESTING_MEMORY_STRESS_STACKSIZE
|
||||
int "MEMORY stress stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
|
@ -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
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,6 +18,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifneq ($(CONFIG_SYSTEM_CACHESPEED),)
|
||||
CONFIGURED_APPS += $(APPDIR)/system/cachespeed
|
||||
ifneq ($(CONFIG_TESTING_MEMORY_STRESS),)
|
||||
CONFIGURED_APPS += $(APPDIR)/testing/memstress
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# apps/system/memstress/Makefile
|
||||
# apps/testing/memstress/Makefile
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
|
||||
|
||||
# RAM speed test
|
||||
|
||||
PROGNAME = $(CONFIG_SYSTEM_MEMORY_STRESS_PROGNAME)
|
||||
PRIORITY = $(CONFIG_SYSTEM_MEMORY_STRESS_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_SYSTEM_MEMORY_STRESS_STACKSIZE)
|
||||
MODULE = $(CONFIG_SYSTEM_MEMORY_STRESS)
|
||||
PROGNAME = $(CONFIG_TESTING_MEMORY_STRESS_PROGNAME)
|
||||
PRIORITY = $(CONFIG_TESTING_MEMORY_STRESS_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_MEMORY_STRESS_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_MEMORY_STRESS)
|
||||
|
||||
MAINSRC = memorystress_main.c
|
||||
|
@ -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
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
@ -3,26 +3,26 @@
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config SYSTEM_RAMSPEED
|
||||
config TESTING_RAMSPEED
|
||||
tristate "RAM Speed Test"
|
||||
default n
|
||||
---help---
|
||||
Enable a simple RAM speed test.
|
||||
|
||||
if SYSTEM_RAMSPEED
|
||||
if TESTING_RAMSPEED
|
||||
|
||||
config SYSTEM_RAMSPEED_PROGNAME
|
||||
config TESTING_RAMSPEED_PROGNAME
|
||||
string "Program name"
|
||||
default "ramspeed"
|
||||
---help---
|
||||
This is the name of the program that will be used when the NSH ELF
|
||||
program is installed.
|
||||
|
||||
config SYSTEM_RAMSPEED_PRIORITY
|
||||
config TESTING_RAMSPEED_PRIORITY
|
||||
int "RAM speed test task priority"
|
||||
default 100
|
||||
|
||||
config SYSTEM_RAMSPEED_STACKSIZE
|
||||
config TESTING_RAMSPEED_STACKSIZE
|
||||
int "RAM speed test stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
|
@ -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
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,6 +18,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifneq ($(CONFIG_SYSTEM_RAMTEST),)
|
||||
CONFIGURED_APPS += $(APPDIR)/system/ramtest
|
||||
ifneq ($(CONFIG_TESTING_RAMSPEED),)
|
||||
CONFIGURED_APPS += $(APPDIR)/testing/ramspeed
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# apps/system/ramspeed/Makefile
|
||||
# apps/testing/ramspeed/Makefile
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
|
||||
|
||||
# RAM speed test
|
||||
|
||||
PROGNAME = $(CONFIG_SYSTEM_RAMSPEED_PROGNAME)
|
||||
PRIORITY = $(CONFIG_SYSTEM_RAMSPEED_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_SYSTEM_RAMSPEED_STACKSIZE)
|
||||
MODULE = $(CONFIG_SYSTEM_RAMSPEED)
|
||||
PROGNAME = $(CONFIG_TESTING_RAMSPEED_PROGNAME)
|
||||
PRIORITY = $(CONFIG_TESTING_RAMSPEED_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_RAMSPEED_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_RAMSPEED)
|
||||
|
||||
MAINSRC = ramspeed_main.c
|
||||
|
@ -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
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
@ -3,26 +3,26 @@
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config SYSTEM_RAMTEST
|
||||
config TESTING_RAMTEST
|
||||
tristate "RAM Test"
|
||||
default n
|
||||
---help---
|
||||
Enable a simple RAM test.
|
||||
|
||||
if SYSTEM_RAMTEST
|
||||
if TESTING_RAMTEST
|
||||
|
||||
config SYSTEM_RAMTEST_PROGNAME
|
||||
config TESTING_RAMTEST_PROGNAME
|
||||
string "Program name"
|
||||
default "ramtest"
|
||||
---help---
|
||||
This is the name of the program that will be used when the NSH ELF
|
||||
program is installed.
|
||||
|
||||
config SYSTEM_RAMTEST_PRIORITY
|
||||
config TESTING_RAMTEST_PRIORITY
|
||||
int "RAM test task priority"
|
||||
default 100
|
||||
|
||||
config SYSTEM_RAMTEST_STACKSIZE
|
||||
config TESTING_RAMTEST_STACKSIZE
|
||||
int "RAM test stack size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
|
@ -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
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,6 +18,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifneq ($(CONFIG_SYSTEM_RAMSPEED),)
|
||||
CONFIGURED_APPS += $(APPDIR)/system/ramspeed
|
||||
ifneq ($(CONFIG_TESTING_RAMTEST),)
|
||||
CONFIGURED_APPS += $(APPDIR)/testing/ramtest
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# apps/system/ramtest/Makefile
|
||||
# apps/testing/ramtest/Makefile
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@ -22,10 +22,10 @@ include $(APPDIR)/Make.defs
|
||||
|
||||
# RAM test
|
||||
|
||||
PROGNAME = $(CONFIG_SYSTEM_RAMTEST_PROGNAME)
|
||||
PRIORITY = $(CONFIG_SYSTEM_RAMTEST_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_SYSTEM_RAMTEST_STACKSIZE)
|
||||
MODULE = $(CONFIG_SYSTEM_RAMTEST)
|
||||
PROGNAME = $(CONFIG_TESTING_RAMTEST_PROGNAME)
|
||||
PRIORITY = $(CONFIG_TESTING_RAMTEST_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_RAMTEST_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_RAMTEST)
|
||||
|
||||
MAINSRC = ramtest.c
|
||||
|
@ -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
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <nuttx/usb/usbdev_trace.h>
|
||||
|
||||
#ifdef CONFIG_SYSTEM_RAMTEST
|
||||
#ifdef CONFIG_TESTING_RAMTEST
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -591,4 +591,4 @@ int main(int argc, FAR char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SYSTEM_RAMTEST */
|
||||
#endif /* CONFIG_TESTING_RAMTEST */
|
Loading…
Reference in New Issue
Block a user