Skip to content

Commit 04e954b

Browse files
committed
apps/testing:merge case folder to the new mm folder
1.rename original mm folder to heaptest and move it to mm folder 2.move the following folders into the new mm folder: cachetest, heaptest, iob, kasantest, memstress, memtester, ramtest, stressapptest Signed-off-by: tengshuangshuang <[email protected]>
1 parent 2ad162d commit 04e954b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+145
-72
lines changed

testing/mm/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Kconfig

testing/mm/CMakeLists.txt

+2-15
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,5 @@
2020
#
2121
# ##############################################################################
2222

23-
if(CONFIG_TESTING_MM)
24-
nuttx_add_application(
25-
NAME
26-
${CONFIG_TESTING_MM_PROGNAME}
27-
PRIORITY
28-
${CONFIG_TESTING_MM_PRIORITY}
29-
STACKSIZE
30-
${CONFIG_TESTING_MM_STACKSIZE}
31-
MODULE
32-
${CONFIG_TESTING_MM}
33-
INCLUDE_DIRECTORIES
34-
${NUTTX_DIR}/mm/mm_heap
35-
SRCS
36-
mm_main.c)
37-
endif()
23+
nuttx_add_subdirectory()
24+
nuttx_generate_kconfig(MENUDESC "mm")

testing/mm/Make.defs

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@
2020
#
2121
############################################################################
2222

23-
ifneq ($(CONFIG_TESTING_MM),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/mm
25-
endif
23+
include $(wildcard $(APPDIR)/testing/mm/*/Make.defs)

testing/mm/Makefile

+2-13
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
#
2121
############################################################################
2222

23-
include $(APPDIR)/Make.defs
23+
MENUDESC = "mm"
2424

25-
# Memory Management Test
26-
27-
PROGNAME = $(CONFIG_TESTING_MM_PROGNAME)
28-
PRIORITY = $(CONFIG_TESTING_MM_PRIORITY)
29-
STACKSIZE = $(CONFIG_TESTING_MM_STACKSIZE)
30-
MODULE = $(CONFIG_TESTING_MM)
31-
32-
MAINSRC = mm_main.c
33-
34-
CFLAGS += -I$(TOPDIR)/mm/mm_heap
35-
36-
include $(APPDIR)/Application.mk
25+
include $(APPDIR)/Directory.mk

testing/cachetest/CMakeLists.txt renamed to testing/mm/cachetest/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/cachetest/CMakeLists.txt
2+
# apps/testing/mm/cachetest/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/cachetest/Make.defs renamed to testing/mm/cachetest/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/cachetest/Make.defs
2+
# apps/testing/mm/cachetest/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_CACHETEST),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/cachetest
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/cachetest
2525
endif

testing/cachetest/Makefile renamed to testing/mm/cachetest/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/cachetest/Makefile
2+
# apps/testing/mm/cachetest/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/cachetest/cachetest_main.c renamed to testing/mm/cachetest/cachetest_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/cachetest/cachetest_main.c
2+
* apps/testing/mm/cachetest/cachetest_main.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

testing/mm/heaptest/CMakeLists.txt

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ##############################################################################
2+
# apps/testing/mm/heaptest/CMakeLists.txt
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
20+
#
21+
# ##############################################################################
22+
23+
if(CONFIG_TESTING_HEAP)
24+
nuttx_add_application(
25+
NAME
26+
${CONFIG_TESTING_HEAP_PROGNAME}
27+
PRIORITY
28+
${CONFIG_TESTING_HEAP_PRIORITY}
29+
STACKSIZE
30+
${CONFIG_TESTING_HEAP_STACKSIZE}
31+
MODULE
32+
${CONFIG_TESTING_HEAP}
33+
INCLUDE_DIRECTORIES
34+
${NUTTX_DIR}/mm/mm_heap
35+
SRCS
36+
heap_main.c)
37+
endif()

testing/mm/Kconfig renamed to testing/mm/heaptest/Kconfig

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
# see the file kconfig-language.txt in the NuttX tools repository.
44
#
55

6-
config TESTING_MM
6+
config TESTING_HEAP
77
tristate "Memory management test"
88
default n
99
---help---
1010
Enable the memory management test
1111

12-
if TESTING_MM
12+
if TESTING_HEAP
1313

14-
config TESTING_MM_PROGNAME
14+
config TESTING_HEAP_PROGNAME
1515
string "Program name"
16-
default "mm"
16+
default "heap"
1717
---help---
1818
This is the name of the program that will be used when the NSH ELF
1919
program is installed.
2020

21-
config TESTING_MM_PRIORITY
21+
config TESTING_HEAP_PRIORITY
2222
int "Task priority"
2323
default 100
2424

25-
config TESTING_MM_STACKSIZE
25+
config TESTING_HEAP_STACKSIZE
2626
int "Stack size"
2727
default DEFAULT_TASK_STACKSIZE
2828

29-
config TESTING_MM_POWEROFF
29+
config TESTING_HEAP_POWEROFF
3030
bool "Terminate on test completion"
3131
default n
3232
depends on BOARDCTL_POWEROFF

testing/mm/heaptest/Make.defs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
############################################################################
2+
# apps/testing/mm/heaptest/Make.defs
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more
7+
# contributor license agreements. See the NOTICE file distributed with
8+
# this work for additional information regarding copyright ownership. The
9+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
10+
# "License"); you may not use this file except in compliance with the
11+
# License. You may obtain a copy of the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations
19+
# under the License.
20+
#
21+
############################################################################
22+
23+
ifneq ($(CONFIG_TESTING_HEAP),)
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/heaptest
25+
endif

testing/mm/heaptest/Makefile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
############################################################################
2+
# apps/testing/mm/heaptest/Makefile
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more
7+
# contributor license agreements. See the NOTICE file distributed with
8+
# this work for additional information regarding copyright ownership. The
9+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
10+
# "License"); you may not use this file except in compliance with the
11+
# License. You may obtain a copy of the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations
19+
# under the License.
20+
#
21+
############################################################################
22+
23+
include $(APPDIR)/Make.defs
24+
25+
# Memory Management Test
26+
27+
PROGNAME = $(CONFIG_TESTING_HEAP_PROGNAME)
28+
PRIORITY = $(CONFIG_TESTING_HEAP_PRIORITY)
29+
STACKSIZE = $(CONFIG_TESTING_HEAP_STACKSIZE)
30+
MODULE = $(CONFIG_TESTING_HEAP)
31+
32+
MAINSRC = heap_main.c
33+
34+
CFLAGS += -I$(TOPDIR)/mm/mm_heap
35+
36+
include $(APPDIR)/Application.mk

testing/mm/mm_main.c renamed to testing/mm/heaptest/heap_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/mm/mm_main.c
2+
* apps/testing/mm/heaptest/heap_main.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

testing/iob/CMakeLists.txt renamed to testing/mm/iob/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/iob/CMakeLists.txt
2+
# apps/testing/mm/iob/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/iob/Make.defs renamed to testing/mm/iob/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/iob/Make.defs
2+
# apps/testing/mm/iob/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_IOB),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/iob
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/iob
2525
endif

testing/iob/Makefile renamed to testing/mm/iob/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/iob/Makefile
2+
# apps/testing/mm/iob/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/iob/iob_main.c renamed to testing/mm/iob/iob_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/iob/iob_main.c
2+
* apps/testing/mm/iob/iob_main.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

testing/kasantest/CMakeLists.txt renamed to testing/mm/kasantest/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/kasantest/CMakeLists.txt
2+
# apps/testing/mm/kasantest/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/kasantest/Make.defs renamed to testing/mm/kasantest/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/kasantest/Make.defs
2+
# apps/testing/mm/kasantest/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_KASAN),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/kasantest
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/kasantest
2525
endif

testing/kasantest/Makefile renamed to testing/mm/kasantest/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/kasantest/Makefile
2+
# apps/testing/mm/kasantest/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/kasantest/kasantest.c renamed to testing/mm/kasantest/kasantest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/kasantest/kasantest.c
2+
* apps/testing/mm/kasantest/kasantest.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

testing/memstress/CMakeLists.txt renamed to testing/mm/memstress/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/memstress/CMakeLists.txt
2+
# apps/testing/mm/memstress/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/memstress/Make.defs renamed to testing/mm/memstress/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/memstress/Make.defs
2+
# apps/testing/mm/memstress/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_MEMORY_STRESS),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/memstress
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/memstress
2525
endif

testing/memstress/Makefile renamed to testing/mm/memstress/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/memstress/Makefile
2+
# apps/testing/mm/memstress/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/memstress/memorystress_main.c renamed to testing/mm/memstress/memorystress_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/memstress/memorystress_main.c
2+
* apps/testing/mm/memstress/memorystress_main.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
File renamed without changes.

testing/memtester/CMakeLists.txt renamed to testing/mm/memtester/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/memtester/CMakeLists.txt
2+
# apps/testing/mm/memtester/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/memtester/Make.defs renamed to testing/mm/memtester/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/memtester/Make.defs
2+
# apps/testing/mm/memtester/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_UTILS_MEMTESTER),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/memtester
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/memtester
2525
endif

testing/memtester/Makefile renamed to testing/mm/memtester/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/memtester/Makefile
2+
# apps/testing/mm/memtester/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/ramtest/CMakeLists.txt renamed to testing/mm/ramtest/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ##############################################################################
2-
# apps/testing/ramtest/CMakeLists.txt
2+
# apps/testing/mm/ramtest/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
File renamed without changes.

testing/ramtest/Make.defs renamed to testing/mm/ramtest/Make.defs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/ramtest/Make.defs
2+
# apps/testing/mm/ramtest/Make.defs
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -21,5 +21,5 @@
2121
############################################################################
2222

2323
ifneq ($(CONFIG_TESTING_RAMTEST),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/ramtest
24+
CONFIGURED_APPS += $(APPDIR)/testing/mm/ramtest
2525
endif

testing/ramtest/Makefile renamed to testing/mm/ramtest/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
############################################################################
2-
# apps/testing/ramtest/Makefile
2+
# apps/testing/mm/ramtest/Makefile
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#

testing/ramtest/ramtest.c renamed to testing/mm/ramtest/ramtest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/testing/ramtest/ramtest.c
2+
* apps/testing/mm/ramtest/ramtest.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

0 commit comments

Comments
 (0)