Skip to content

Commit 5af43ed

Browse files
committed
apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder
Signed-off-by: tengshuangshuang <[email protected]>
1 parent 5330966 commit 5af43ed

Some content is hidden

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

53 files changed

+124
-51
lines changed

testing/drivers/.gitignore

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

testing/drivers/CMakeLists.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ##############################################################################
2+
# apps/testing/drivers/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+
nuttx_add_subdirectory()
24+
nuttx_generate_kconfig(MENUDESC "drivers")

testing/drivers/Make.defs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
############################################################################
2+
# apps/testing/drivers/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+
include $(wildcard $(APPDIR)/testing/drivers/*/Make.defs)

testing/drivers/Makefile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
############################################################################
2+
# apps/testing/drivers/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+
MENUDESC = "dirvers"
24+
25+
include $(APPDIR)/Directory.mk

testing/drivertest/CMakeLists.txt renamed to testing/drivers/drivertest/CMakeLists.txt

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

testing/drivertest/Make.defs renamed to testing/drivers/drivertest/Make.defs

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

2323
ifneq ($(CONFIG_TESTING_DRIVER_TEST),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/drivertest
24+
CONFIGURED_APPS += $(APPDIR)/testing/driver/drivertest
2525
endif

testing/drivertest/Makefile renamed to testing/drivers/drivertest/Makefile

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

testing/drivertest/drivertest_adc.c renamed to testing/drivers/drivertest/drivertest_adc.c

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

testing/drivertest/drivertest_audio.c renamed to testing/drivers/drivertest/drivertest_audio.c

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

testing/drivertest/drivertest_block.c renamed to testing/drivers/drivertest/drivertest_block.c

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

testing/drivertest/drivertest_framebuffer.c renamed to testing/drivers/drivertest/drivertest_framebuffer.c

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

testing/drivertest/drivertest_gpio.c renamed to testing/drivers/drivertest/drivertest_gpio.c

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

testing/drivertest/drivertest_i2c_read.c renamed to testing/drivers/drivertest/drivertest_i2c_read.c

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

testing/drivertest/drivertest_i2c_spi.c renamed to testing/drivers/drivertest/drivertest_i2c_spi.c

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

testing/drivertest/drivertest_i2c_write.c renamed to testing/drivers/drivertest/drivertest_i2c_write.c

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

testing/drivertest/drivertest_lcd.c renamed to testing/drivers/drivertest/drivertest_lcd.c

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

testing/drivertest/drivertest_mps2.c renamed to testing/drivers/drivertest/drivertest_mps2.c

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

testing/drivertest/drivertest_mps2_isr_signal.c renamed to testing/drivers/drivertest/drivertest_mps2_isr_signal.c

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

testing/drivertest/drivertest_mps2_zerointerrupt.c renamed to testing/drivers/drivertest/drivertest_mps2_zerointerrupt.c

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

testing/drivertest/drivertest_oneshot.c renamed to testing/drivers/drivertest/drivertest_oneshot.c

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

testing/drivertest/drivertest_pm.c renamed to testing/drivers/drivertest/drivertest_pm.c

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

testing/drivertest/drivertest_pm_runtime.c renamed to testing/drivers/drivertest/drivertest_pm_runtime.c

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

testing/drivertest/drivertest_pm_smp.c renamed to testing/drivers/drivertest/drivertest_pm_smp.c

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

testing/drivertest/drivertest_posix_timer.c renamed to testing/drivers/drivertest/drivertest_posix_timer.c

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

testing/drivertest/drivertest_pwm.c renamed to testing/drivers/drivertest/drivertest_pwm.c

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

testing/drivertest/drivertest_regulator.c renamed to testing/drivers/drivertest/drivertest_regulator.c

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

testing/drivertest/drivertest_relay.c renamed to testing/drivers/drivertest/drivertest_relay.c

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

testing/drivertest/drivertest_rtc.c renamed to testing/drivers/drivertest/drivertest_rtc.c

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

testing/drivertest/drivertest_simple.c renamed to testing/drivers/drivertest/drivertest_simple.c

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

testing/drivertest/drivertest_timer.c renamed to testing/drivers/drivertest/drivertest_timer.c

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

testing/drivertest/drivertest_touchpanel.c renamed to testing/drivers/drivertest/drivertest_touchpanel.c

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

testing/drivertest/drivertest_uart.c renamed to testing/drivers/drivertest/drivertest_uart.c

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

testing/drivertest/drivertest_watchdog.c renamed to testing/drivers/drivertest/drivertest_watchdog.c

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

testing/drivertest/test_content_gen.py renamed to testing/drivers/drivertest/test_content_gen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/python3
22
#############################################################################
3-
# apps/testing/drivertest/cmocka_driver_uart/test_content_gen.py
3+
# apps/testing/drivers/drivertest/cmocka_driver_uart/test_content_gen.py
44
#
55
# SPDX-License-Identifier: Apache-2.0
66
#

testing/fftest/CMakeLists.txt renamed to testing/drivers/fftest/CMakeLists.txt

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

testing/fftest/Make.defs renamed to testing/drivers/fftest/Make.defs

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

2323
ifneq ($(CONFIG_TESTING_FF),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/fftest
24+
CONFIGURED_APPS += $(APPDIR)/testing/driver/fftest
2525
endif

testing/fftest/Makefile renamed to testing/drivers/fftest/Makefile

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

testing/fftest/fftest.c renamed to testing/drivers/fftest/fftest.c

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

testing/nand_sim/CMakeLists.txt renamed to testing/drivers/nand_sim/CMakeLists.txt

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

testing/nand_sim/Make.defs renamed to testing/drivers/nand_sim/Make.defs

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

2323
ifneq ($(CONFIG_TESTING_NAND_SIM),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/nand_sim
24+
CONFIGURED_APPS += $(APPDIR)/testing/driver/nand_sim
2525
endif

testing/nand_sim/Makefile renamed to testing/drivers/nand_sim/Makefile

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

testing/nand_sim/nand_sim_main.c renamed to testing/drivers/nand_sim/nand_sim_main.c

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

testing/pcitest/Make.defs renamed to testing/drivers/pcitest/Make.defs

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

2323
ifneq ($(CONFIG_TESTING_PCITEST),)
24-
CONFIGURED_APPS += $(APPDIR)/testing/pcitest
24+
CONFIGURED_APPS += $(APPDIR)/testing/driver/pcitest
2525
endif

testing/pcitest/Makefile renamed to testing/drivers/pcitest/Makefile

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

testing/pcitest/pcitest.c renamed to testing/drivers/pcitest/pcitest.c

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

0 commit comments

Comments
 (0)