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 <tengshuangshuang@xiaomi.com>
This commit is contained in:
tengshuangshuang 2025-01-21 09:18:45 +08:00 committed by Xiang Xiao
parent dca032ab18
commit 6bc2b3c933
53 changed files with 124 additions and 51 deletions

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

@ -0,0 +1 @@
/Kconfig

View file

@ -0,0 +1,24 @@
# ##############################################################################
# apps/testing/drivers/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 "drivers")

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

@ -0,0 +1,23 @@
############################################################################
# apps/testing/drivers/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/drivers/*/Make.defs)

25
testing/drivers/Makefile Normal file
View file

@ -0,0 +1,25 @@
############################################################################
# apps/testing/drivers/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 = "dirvers"
include $(APPDIR)/Directory.mk

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_adc.c
* apps/testing/drivers/drivertest/drivertest_adc.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_audio.c
* apps/testing/drivers/drivertest/drivertest_audio.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_block.c
* apps/testing/drivers/drivertest/drivertest_block.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_framebuffer.c
* apps/testing/drivers/drivertest/drivertest_framebuffer.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_gpio.c
* apps/testing/drivers/drivertest/drivertest_gpio.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_i2c_read.c
* apps/testing/drivers/drivertest/drivertest_i2c_read.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_i2c_spi.c
* apps/testing/drivers/drivertest/drivertest_i2c_spi.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_i2c_write.c
* apps/testing/drivers/drivertest/drivertest_i2c_write.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_lcd.c
* apps/testing/drivers/drivertest/drivertest_lcd.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_mps2.c
* apps/testing/drivers/drivertest/drivertest_mps2.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_mps2_isr_signal.c
* apps/testing/drivers/drivertest/drivertest_mps2_isr_signal.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_mps2_zerointerrupt.c
* apps/testing/drivers/drivertest/drivertest_mps2_zerointerrupt.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_oneshot.c
* apps/testing/drivers/drivertest/drivertest_oneshot.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_pm.c
* apps/testing/drivers/drivertest/drivertest_pm.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_pm_runtime.c
* apps/testing/drivers/drivertest/drivertest_pm_runtime.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_pm_smp.c
* apps/testing/drivers/drivertest/drivertest_pm_smp.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_posix_timer.c
* apps/testing/drivers/drivertest/drivertest_posix_timer.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_pwm.c
* apps/testing/drivers/drivertest/drivertest_pwm.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_regulator.c
* apps/testing/drivers/drivertest/drivertest_regulator.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_relay.c
* apps/testing/drivers/drivertest/drivertest_relay.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_rtc.c
* apps/testing/drivers/drivertest/drivertest_rtc.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_simple.c
* apps/testing/drivers/drivertest/drivertest_simple.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_timer.c
* apps/testing/drivers/drivertest/drivertest_timer.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_touchpanel.c
* apps/testing/drivers/drivertest/drivertest_touchpanel.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_uart.c
* apps/testing/drivers/drivertest/drivertest_uart.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_watchdog.c
* apps/testing/drivers/drivertest/drivertest_watchdog.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

@ -1,6 +1,6 @@
#!/bin/python3
#############################################################################
# apps/testing/drivertest/cmocka_driver_uart/test_content_gen.py
# apps/testing/drivers/drivertest/cmocka_driver_uart/test_content_gen.py
#
# SPDX-License-Identifier: Apache-2.0
#

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/nand_sim/nand_sim_main.c
* apps/testing/drivers/nand_sim/nand_sim_main.c
*
* SPDX-License-Identifier: Apache-2.0
*

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
/****************************************************************************
* apps/testing/sd_stress/sd_stress_main.c
* apps/testing/drivers/sd_stress/sd_stress_main.c
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2016-2021 PX4 Development Team. All rights reserved.
*
* SPDX-FileCopyrightText: 2016-2021 PX4 Development Team. All rights
* reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: