Skip to content

Commit 077c346

Browse files
txy-21xiaoxiang781216
authored andcommitted
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 acc2b39 commit 077c346

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Kconfig

testing/mm/CMakeLists.txt

Lines changed: 2 additions & 15 deletions
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 2 additions & 13 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 37 additions & 0 deletions
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()

0 commit comments

Comments
 (0)