Skip to content

Commit

Permalink
apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest s…
Browse files Browse the repository at this point in the history
…d_bench sd_stress sensortest} folders to the new driver folder

Signed-off-by: tengshuangshuang <[email protected]>
  • Loading branch information
txy-21 committed Jan 21, 2025
1 parent 5330966 commit 5af43ed
Show file tree
Hide file tree
Showing 53 changed files with 124 additions and 51 deletions.
1 change: 1 addition & 0 deletions testing/drivers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Kconfig
24 changes: 24 additions & 0 deletions testing/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions testing/drivers/Make.defs
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions testing/drivers/Makefile
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/drivertest/CMakeLists.txt
# apps/testing/driverss/drivertest/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/drivertest/Make.defs
# apps/testing/drivers/drivertest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_DRIVER_TEST),)
CONFIGURED_APPS += $(APPDIR)/testing/drivertest
CONFIGURED_APPS += $(APPDIR)/testing/driver/drivertest
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/drivertest/Makefile
# apps/testing/drivers/drivertest/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/drivertest/drivertest_adc.c
* apps/testing/driverss/drivertest/drivertest_adc.c

Check failure on line 2 in testing/drivers/drivertest/drivertest_adc.c

View workflow job for this annotation

GitHub Actions / check

Relative file path does not match actual file
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/drivertest/drivertest_audio.c
* apps/testing/drivers/drivertest/drivertest_audio.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/drivertest/drivertest_block.c
* apps/testing/drivers/drivertest/drivertest_block.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/drivertest/drivertest_framebuffer.c
* apps/testing/drivers/drivertest/drivertest_framebuffer.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/drivertest/drivertest_gpio.c
* apps/testing/drivers/drivertest/drivertest_gpio.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/drivertest/drivertest_i2c_read.c
* apps/testing/drivers/drivertest/drivertest_i2c_read.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/drivertest/drivertest_i2c_spi.c
* apps/testing/drivers/drivertest/drivertest_i2c_spi.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/drivertest/drivertest_i2c_write.c
* apps/testing/drivers/drivertest/drivertest_i2c_write.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/drivertest/drivertest_lcd.c
* apps/testing/drivers/drivertest/drivertest_lcd.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/drivertest/drivertest_mps2.c
* apps/testing/drivers/drivertest/drivertest_mps2.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/drivertest/drivertest_mps2_isr_signal.c
* apps/testing/drivers/drivertest/drivertest_mps2_isr_signal.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/drivertest/drivertest_mps2_zerointerrupt.c
* apps/testing/drivers/drivertest/drivertest_mps2_zerointerrupt.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/drivertest/drivertest_oneshot.c
* apps/testing/drivers/drivertest/drivertest_oneshot.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/drivertest/drivertest_pm.c
* apps/testing/drivers/drivertest/drivertest_pm.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/drivertest/drivertest_pm_runtime.c
* apps/testing/drivers/drivertest/drivertest_pm_runtime.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/drivertest/drivertest_pm_smp.c
* apps/testing/drivers/drivertest/drivertest_pm_smp.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/drivertest/drivertest_posix_timer.c
* apps/testing/drivers/drivertest/drivertest_posix_timer.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/drivertest/drivertest_pwm.c
* apps/testing/drivers/drivertest/drivertest_pwm.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/drivertest/drivertest_regulator.c
* apps/testing/drivers/drivertest/drivertest_regulator.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/drivertest/drivertest_relay.c
* apps/testing/drivers/drivertest/drivertest_relay.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/drivertest/drivertest_rtc.c
* apps/testing/drivers/drivertest/drivertest_rtc.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/drivertest/drivertest_simple.c
* apps/testing/drivers/drivertest/drivertest_simple.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/drivertest/drivertest_timer.c
* apps/testing/drivers/drivertest/drivertest_timer.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/drivertest/drivertest_touchpanel.c
* apps/testing/drivers/drivertest/drivertest_touchpanel.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/drivertest/drivertest_uart.c
* apps/testing/drivers/drivertest/drivertest_uart.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/drivertest/drivertest_watchdog.c
* apps/testing/drivers/drivertest/drivertest_watchdog.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/fftest/CMakeLists.txt
# apps/testing/drivers/fftest/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/fftest/Make.defs → testing/drivers/fftest/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fftest/Make.defs
# apps/testing/drivers/fftest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_FF),)
CONFIGURED_APPS += $(APPDIR)/testing/fftest
CONFIGURED_APPS += $(APPDIR)/testing/driver/fftest
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fftest/Makefile
# apps/testing/drivers/fftest/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/fftest/fftest.c
* apps/testing/drivers/fftest/fftest.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/nand_sim/CMakeLists.txt
# apps/testing/drivers/nand_sim/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/nand_sim/Make.defs
# apps/testing/drivers/nand_sim/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_NAND_SIM),)
CONFIGURED_APPS += $(APPDIR)/testing/nand_sim
CONFIGURED_APPS += $(APPDIR)/testing/driver/nand_sim
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/nand_sim/Makefile
# apps/testing/drivers/nand_sim/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/nand_sim/nand_sim_main.c
* apps/testing/drivers/nand_sim/nand_sim_main.c
*
* 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/pcitest/Make.defs
# apps/testing/drivers/pcitest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_PCITEST),)
CONFIGURED_APPS += $(APPDIR)/testing/pcitest
CONFIGURED_APPS += $(APPDIR)/testing/driver/pcitest
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/pcitest/Makefile
# apps/testing/drivers/pcitest/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/pcitest/pcitest.c
* apps/testing/drivers/pcitest/pcitest.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
File renamed without changes.
Loading

0 comments on commit 5af43ed

Please sign in to comment.