Skip to content

Commit

Permalink
apps/testing:move atomic,cpuload,getprime,smp and timerjitter folders…
Browse files Browse the repository at this point in the history
… to the new sched folder

Signed-off-by: tengshuangshuang <[email protected]>
  • Loading branch information
txy-21 committed Jan 24, 2025
1 parent d3a1f80 commit d9a099c
Show file tree
Hide file tree
Showing 29 changed files with 98 additions and 25 deletions.
1 change: 1 addition & 0 deletions testing/sched/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Kconfig
24 changes: 24 additions & 0 deletions testing/sched/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions testing/sched/Make.defs
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions testing/sched/Makefile
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/atomic/CMakeLists.txt
# apps/testing/sched/atomic/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/atomic/Make.defs → testing/sched/atomic/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/atomic/Make.defs
# apps/testing/sched/atomic/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_ATOMIC),)
CONFIGURED_APPS += $(APPDIR)/testing/atomic
CONFIGURED_APPS += $(APPDIR)/testing/sched/atomic
endif
2 changes: 1 addition & 1 deletion testing/atomic/Makefile → testing/sched/atomic/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/atomic/Makefile
# apps/testing/sched/atomic/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/atomic/atomic_main.c
* apps/testing/sched/atomic/atomic_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/cpuload/CMakeLists.txt
# apps/testing/sched/cpuload/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/cpuload/Make.defs → testing/sched/cpuload/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/cpuload/Make.defs
# apps/testing/sched/cpuload/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_CPULOAD),)
CONFIGURED_APPS += $(APPDIR)/testing/cpuload
CONFIGURED_APPS += $(APPDIR)/testing/sched/cpuload
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/cpuload/Makefile
# apps/testing/sched/cpuload/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/cpuload/cpuload_main.c
* apps/testing/sched/cpuload/cpuload_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/getprime/CMakeLists.txt
# apps/testing/sched/getprime/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/getprime/Make.defs
# apps/testing/sched/getprime/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_GETPRIME),)
CONFIGURED_APPS += $(APPDIR)/testing/getprime
CONFIGURED_APPS += $(APPDIR)/testing/sched/getprime
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/getprime/Makefile
# apps/testing/sched/getprime/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/getprime/getprime_main.c
* apps/testing/sched/getprime/getprime_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/smp/CMakeLists.txt
# apps/testing/sched/smp/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/smp/Make.defs → testing/sched/smp/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/smp/Make.defs
# apps/testing/sched/smp/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_SMP),)
CONFIGURED_APPS += $(APPDIR)/testing/smp
CONFIGURED_APPS += $(APPDIR)/testing/sched/smp
endif
2 changes: 1 addition & 1 deletion testing/smp/Makefile → testing/sched/smp/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/smp/Makefile
# apps/testing/sched/smp/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
2 changes: 1 addition & 1 deletion testing/smp/smp_main.c → testing/sched/smp/smp_main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/smp/smp_main.c
* apps/testing/sched/smp/smp_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/timerjitter/CMakeLists.txt
# apps/testing/sched/timerjitter/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/timerjitter/Make.defs
# apps/testing/sched/timerjitter/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_TIMERJITTER),)
CONFIGURED_APPS += $(APPDIR)/testing/timerjitter
CONFIGURED_APPS += $(APPDIR)/testing/sched/timerjitter
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/timerjitter/Makefile
# apps/testing/sched/timerjitter/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/timerjitter/timerjitter.c
* apps/testing/sched/timerjitter/timerjitter.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down

0 comments on commit d9a099c

Please sign in to comment.