apps/testing:move atomic,cpuload,getprime,smp and timerjitter folders to the new sched folder

Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
This commit is contained in:
tengshuangshuang 2025-01-24 14:27:50 +08:00 committed by Xiang Xiao
parent d3a1f80308
commit 0406e6734a
29 changed files with 103 additions and 30 deletions

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/cpuload/CMakeLists.txt
# apps/system/cpuload/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,7 +20,7 @@
#
# ##############################################################################
if(CONFIG_TESTING_CPULOAD)
if(CONFIG_SYSTEM_CPULOAD)
nuttx_add_application(
NAME
cpuload
@ -29,7 +29,7 @@ if(CONFIG_TESTING_CPULOAD)
STACKSIZE
${CONFIG_DEFAULT_TASK_STACKSIZE}
MODULE
${CONFIG_TESTING_CPULOAD}
${CONFIG_SYSTEM_CPULOAD}
SRCS
cpuload_main.c)
endif()

View file

@ -3,6 +3,6 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config TESTING_CPULOAD
config SYSTEM_CPULOAD
tristate "cpuload test"
default n

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/cpuload/Make.defs
# apps/system/cpuload/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,6 +20,6 @@
#
############################################################################
ifneq ($(CONFIG_TESTING_CPULOAD),)
CONFIGURED_APPS += $(APPDIR)/testing/cpuload
ifneq ($(CONFIG_SYSTEM_CPULOAD),)
CONFIGURED_APPS += $(APPDIR)/testing/sched/cpuload
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/cpuload/Makefile
# apps/system/cpuload/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@ -25,7 +25,7 @@ include $(APPDIR)/Make.defs
PROGNAME = cpuload
PRIORITY = 253
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_TESTING_CPULOAD)
MODULE = $(CONFIG_SYSTEM_CPULOAD)
MAINSRC = cpuload_main.c

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/cpuload/cpuload_main.c
* apps/system/cpuload/cpuload_main.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/atomic/CMakeLists.txt
# apps/testing/libc/atomic/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/atomic/Make.defs
# apps/testing/libc/atomic/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -21,5 +21,5 @@
############################################################################
ifneq ($(CONFIG_TESTING_ATOMIC),)
CONFIGURED_APPS += $(APPDIR)/testing/atomic
CONFIGURED_APPS += $(APPDIR)/testing/sched/atomic
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/atomic/Makefile
# apps/testing/libc/atomic/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/atomic/atomic_main.c
* apps/testing/libc/atomic/atomic_main.c
*
* SPDX-License-Identifier: Apache-2.0
*

1
testing/sched/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/Kconfig

View file

@ -0,0 +1,24 @@
# ##############################################################################
# apps/testing/sched/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
nuttx_add_subdirectory()
nuttx_generate_kconfig(MENUDESC "sched")

23
testing/sched/Make.defs Normal file
View file

@ -0,0 +1,23 @@
############################################################################
# apps/testing/sched/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(wildcard $(APPDIR)/testing/sched/*/Make.defs)

25
testing/sched/Makefile Normal file
View file

@ -0,0 +1,25 @@
############################################################################
# apps/testing/sched/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
MENUDESC = "sched"
include $(APPDIR)/Directory.mk

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/getprime/CMakeLists.txt
# apps/testing/sched/getprime/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/getprime/Make.defs
# apps/testing/sched/getprime/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -21,5 +21,5 @@
############################################################################
ifneq ($(CONFIG_TESTING_GETPRIME),)
CONFIGURED_APPS += $(APPDIR)/testing/getprime
CONFIGURED_APPS += $(APPDIR)/testing/sched/getprime
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/getprime/Makefile
# apps/testing/sched/getprime/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/getprime/getprime_main.c
* apps/testing/sched/getprime/getprime_main.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/smp/CMakeLists.txt
# apps/testing/sched/smp/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/smp/Make.defs
# apps/testing/sched/smp/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -21,5 +21,5 @@
############################################################################
ifneq ($(CONFIG_TESTING_SMP),)
CONFIGURED_APPS += $(APPDIR)/testing/smp
CONFIGURED_APPS += $(APPDIR)/testing/sched/smp
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/smp/Makefile
# apps/testing/sched/smp/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/smp/smp_main.c
* apps/testing/sched/smp/smp_main.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/timerjitter/CMakeLists.txt
# apps/testing/sched/timerjitter/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/timerjitter/Make.defs
# apps/testing/sched/timerjitter/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -21,5 +21,5 @@
############################################################################
ifneq ($(CONFIG_TESTING_TIMERJITTER),)
CONFIGURED_APPS += $(APPDIR)/testing/timerjitter
CONFIGURED_APPS += $(APPDIR)/testing/sched/timerjitter
endif

View file

@ -1,5 +1,5 @@
############################################################################
# apps/testing/timerjitter/Makefile
# apps/testing/sched/timerjitter/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/timerjitter/timerjitter.c
* apps/testing/sched/timerjitter/timerjitter.c
*
* SPDX-License-Identifier: Apache-2.0
*