apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2025-01-26 15:46:38 +08:00 committed by CeDeROM
parent 4e9d907677
commit 85a6aaa322
42 changed files with 163 additions and 163 deletions

View File

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/irtest/CMakeLists.txt
# apps/system/irtest/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,19 +20,19 @@
#
# ##############################################################################
if(CONFIG_TESTING_IRTEST)
if(CONFIG_SYSTEM_IRTEST)
file(GLOB CURRENT_SRCS *.cxx)
list(REMOVE_ITEM CURRENT_SRCS main.cxx)
set(SRCS main.cxx ${CURRENT_SRCS})
nuttx_add_application(
NAME
${CONFIG_TESTING_IRTEST_PROGNAME}
${CONFIG_SYSTEM_IRTEST_PROGNAME}
PRIORITY
${CONFIG_TESTING_IRTEST_PRIORITY}
${CONFIG_SYSTEM_IRTEST_PRIORITY}
STACKSIZE
${CONFIG_TESTING_IRTEST_STACKSIZE}
${CONFIG_SYSTEM_IRTEST_STACKSIZE}
MODULE
${CONFIG_TESTING_IRTEST}
${CONFIG_SYSTEM_IRTEST}
SRCS
${SRCS})
endif()

View File

@ -3,35 +3,35 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config TESTING_IRTEST
config SYSTEM_IRTEST
tristate "IR driver test"
default n
depends on DRIVERS_RC
---help---
Enable the IR driver test
if TESTING_IRTEST
if SYSTEM_IRTEST
config TESTING_IRTEST_PROGNAME
config SYSTEM_IRTEST_PROGNAME
string "Program name"
default "irtest"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config TESTING_IRTEST_PRIORITY
config SYSTEM_IRTEST_PRIORITY
int "IR driver test task priority"
default 100
config TESTING_IRTEST_STACKSIZE
config SYSTEM_IRTEST_STACKSIZE
int "IR driver test stack size"
default DEFAULT_TASK_STACKSIZE
config TESTING_IRTEST_MAX_NIRDEV
config SYSTEM_IRTEST_MAX_NIRDEV
int "The Maximum number of IR devices supported"
default 2
config TESTING_IRTEST_MAX_SIRDATA
config SYSTEM_IRTEST_MAX_SIRDATA
int "The Maximum size of sending data in unsigned int"
default 64

View File

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

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/irtest/Makefile
# apps/system/irtest/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@ -22,10 +22,10 @@
include $(APPDIR)/Make.defs
PROGNAME = $(CONFIG_TESTING_IRTEST_PROGNAME)
PRIORITY = $(CONFIG_TESTING_IRTEST_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_IRTEST_STACKSIZE)
MODULE = $(CONFIG_TESTING_IRTEST)
PROGNAME = $(CONFIG_SYSTEM_IRTEST_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_IRTEST_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_IRTEST_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_IRTEST)
MAINSRC = main.cxx
CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.cxx))

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/irtest/cmd.cxx
* apps/system/irtest/cmd.cxx
*
* SPDX-License-Identifier: Apache-2.0
*
@ -46,7 +46,7 @@
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
static int g_irdevs[CONFIG_TESTING_IRTEST_MAX_NIRDEV];
static int g_irdevs[CONFIG_SYSTEM_IRTEST_MAX_NIRDEV];
/****************************************************************************
* Private Functions
@ -190,7 +190,7 @@ CMD1(open_device, const char *, file_name)
}
int index = 0;
for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV; index++)
for (; index < CONFIG_SYSTEM_IRTEST_MAX_NIRDEV; index++)
{
if (g_irdevs[index] == -1)
{
@ -199,7 +199,7 @@ CMD1(open_device, const char *, file_name)
}
}
if (index == CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index == CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -209,7 +209,7 @@ CMD1(open_device, const char *, file_name)
CMD1(close_device, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -226,15 +226,15 @@ CMD1(close_device, size_t, index)
CMD1(write_data, size_t, index)
{
unsigned int data[CONFIG_TESTING_IRTEST_MAX_SIRDATA];
unsigned int data[CONFIG_SYSTEM_IRTEST_MAX_SIRDATA];
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
int size = 0;
for (; size < CONFIG_TESTING_IRTEST_MAX_SIRDATA; size++)
for (; size < CONFIG_SYSTEM_IRTEST_MAX_SIRDATA; size++)
{
unsigned int tmp = get_next_arg < unsigned int > ();
if (tmp == 0)
@ -263,7 +263,7 @@ CMD1(write_data, size_t, index)
CMD2(read_data, size_t, index, size_t, size)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -291,7 +291,7 @@ CMD2(read_data, size_t, index, size_t, size)
CMD1(get_features, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -308,7 +308,7 @@ CMD1(get_features, size_t, index)
CMD1(get_send_mode, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -325,7 +325,7 @@ CMD1(get_send_mode, size_t, index)
CMD1(get_rec_mode, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -342,7 +342,7 @@ CMD1(get_rec_mode, size_t, index)
CMD1(get_rec_resolution, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -359,7 +359,7 @@ CMD1(get_rec_resolution, size_t, index)
CMD1(get_min_timeout, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -376,7 +376,7 @@ CMD1(get_min_timeout, size_t, index)
CMD1(get_max_timeout, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -393,7 +393,7 @@ CMD1(get_max_timeout, size_t, index)
CMD1(get_length, size_t, index)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -410,7 +410,7 @@ CMD1(get_length, size_t, index)
CMD2(set_send_mode, size_t, index, unsigned int, mode)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -420,7 +420,7 @@ CMD2(set_send_mode, size_t, index, unsigned int, mode)
CMD2(set_rec_mode, size_t, index, unsigned int, mode)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -430,7 +430,7 @@ CMD2(set_rec_mode, size_t, index, unsigned int, mode)
CMD2(set_send_carrier, size_t, index, unsigned int, carrier)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -440,7 +440,7 @@ CMD2(set_send_carrier, size_t, index, unsigned int, carrier)
CMD2(set_rec_carrier, size_t, index, unsigned int, carrier)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -450,7 +450,7 @@ CMD2(set_rec_carrier, size_t, index, unsigned int, carrier)
CMD2(set_send_duty_cycle, size_t, index, unsigned int, duty_cycle)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -460,7 +460,7 @@ CMD2(set_send_duty_cycle, size_t, index, unsigned int, duty_cycle)
CMD2(set_transmitter_mask, size_t, index, unsigned int, mask)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -470,7 +470,7 @@ CMD2(set_transmitter_mask, size_t, index, unsigned int, mask)
CMD2(set_rec_timeout, size_t, index, unsigned int, timeout)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -480,7 +480,7 @@ CMD2(set_rec_timeout, size_t, index, unsigned int, timeout)
CMD2(set_rec_timeout_reports, size_t, index, unsigned int, enable)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -490,7 +490,7 @@ CMD2(set_rec_timeout_reports, size_t, index, unsigned int, enable)
CMD2(set_measure_carrier_mode, size_t, index, unsigned int, enable)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -500,7 +500,7 @@ CMD2(set_measure_carrier_mode, size_t, index, unsigned int, enable)
CMD2(set_rec_carrier_range, size_t, index, unsigned int, carrier)
{
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV)
if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{
return ERROR;
}
@ -514,7 +514,7 @@ CMD2(set_rec_carrier_range, size_t, index, unsigned int, carrier)
void init_device()
{
for (int i = 0; i < CONFIG_TESTING_IRTEST_MAX_NIRDEV; i++)
for (int i = 0; i < CONFIG_SYSTEM_IRTEST_MAX_NIRDEV; i++)
g_irdevs[i] = -1;
}

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/irtest/cmd.hpp
* apps/system/irtest/cmd.hpp
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_IRTEST_CMD_HPP
#define __APPS_TESTING_IRTEST_CMD_HPP
#ifndef __APPS_SYSTEM_IRTEST_CMD_HPP
#define __APPS_SYSTEM_IRTEST_CMD_HPP
/****************************************************************************
* Included Files
@ -179,4 +179,4 @@ inline float get_next_arg()
void init_device();
#endif /* __APPS_TESTING_IRTEST_CMD_H */
#endif /* __APPS_SYSTEM_IRTEST_CMD_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/irtest/enum.cxx
* apps/system/irtest/enum.cxx
*
* SPDX-License-Identifier: Apache-2.0
*

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/irtest/enum.hpp
* apps/system/irtest/enum.hpp
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_IRTEST_ENUM_HPP
#define __APPS_TESTING_IRTEST_ENUM_HPP
#ifndef __APPS_SYSTEM_IRTEST_ENUM_HPP
#define __APPS_SYSTEM_IRTEST_ENUM_HPP
/****************************************************************************
* Included Files
@ -71,4 +71,4 @@ struct enum_type
extern const struct enum_type *g_enum_table[];
#endif /* __APPS_TESTING_IRTEST_ENUM_H */
#endif /* __APPS_SYSTEM_IRTEST_ENUM_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/irtest/main.cxx
* apps/system/irtest/main.cxx
*
* SPDX-License-Identifier: Apache-2.0
*

View File

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/monkey/CMakeLists.txt
# apps/system/monkey/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,7 +20,7 @@
#
# ##############################################################################
if(CONFIG_TESTING_MONKEY)
if(CONFIG_SYSTEM_MONKEY)
file(GLOB CURRENT_SRCS *.c)
list(REMOVE_ITEM CURRENT_SRCS monkey_main.c)
set(SRCS monkey_main.c ${CURRENT_SRCS})
@ -28,11 +28,11 @@ if(CONFIG_TESTING_MONKEY)
NAME
monkey
PRIORITY
${CONFIG_TESTING_MONKEY_PRIORITY}
${CONFIG_SYSTEM_MONKEY_PRIORITY}
STACKSIZE
${CONFIG_TESTING_MONKEY_STACKSIZE}
${CONFIG_SYSTEM_MONKEY_STACKSIZE}
MODULE
${CONFIG_TESTING_MONKEY}
${CONFIG_SYSTEM_MONKEY}
SRCS
${SRCS})
endif()

View File

@ -3,24 +3,24 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
menuconfig TESTING_MONKEY
menuconfig SYSTEM_MONKEY
tristate "Monkey test"
select UINPUT_TOUCH
select UINPUT_BUTTONS
select LIBC_PRINT_EXTENSION
default n
if TESTING_MONKEY
if SYSTEM_MONKEY
config TESTING_MONKEY_PRIORITY
config SYSTEM_MONKEY_PRIORITY
int "Task priority"
default 110
config TESTING_MONKEY_STACKSIZE
config SYSTEM_MONKEY_STACKSIZE
int "Stack size"
default 4096
config TESTING_MONKEY_REC_DIR_PATH
config SYSTEM_MONKEY_REC_DIR_PATH
string "Recorder directory path"
default "/data/monkey"

View File

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

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/monkey/Makefile
# apps/system/monkey/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@ -25,9 +25,9 @@ include $(APPDIR)/Make.defs
# Monkey test example
PROGNAME = monkey
PRIORITY = $(CONFIG_TESTING_MONKEY_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_MONKEY_STACKSIZE)
MODULE = $(CONFIG_TESTING_MONKEY)
PRIORITY = $(CONFIG_SYSTEM_MONKEY_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_MONKEY_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_MONKEY)
MAINSRC = monkey_main.c

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey.h
* apps/system/monkey/monkey.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_H
#define __APPS_TESTING_MONKEY_MONKEY_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_H
#define __APPS_SYSTEM_MONKEY_MONKEY_H
/****************************************************************************
* Included Files
@ -97,4 +97,4 @@ bool monkey_set_recorder_path(FAR struct monkey_s *monkey,
}
#endif
#endif /* __APPS_TESTING_MONKEY_MONKEY_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_assert.h
* apps/system/monkey/monkey_assert.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_ASSERT_H
#define __APPS_TESTING_MONKEY_MONKEY_ASSERT_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_ASSERT_H
#define __APPS_SYSTEM_MONKEY_MONKEY_ASSERT_H
/****************************************************************************
* Included Files
@ -36,4 +36,4 @@
#define MONKEY_ASSERT(expr) DEBUGASSERT(expr)
#define MONKEY_ASSERT_NULL(ptr) MONKEY_ASSERT(ptr != NULL)
#endif /* __APPS_TESTING_MONKEY_MONKEY_ASSERT_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_ASSERT_H */

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_dev.h
* apps/system/monkey/monkey_dev.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_DEV_H
#define __APPS_TESTING_MONKEY_MONKEY_DEV_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_DEV_H
#define __APPS_SYSTEM_MONKEY_MONKEY_DEV_H
/****************************************************************************
* Included Files
@ -96,4 +96,4 @@ int monkey_dev_get_available(FAR struct monkey_dev_s *devs[], int dev_num);
}
#endif
#endif /* __APPS_TESTING_MONKEY_MONKEY_DEV_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_DEV_H */

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_event.h
* apps/system/monkey/monkey_event.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_EVENT_H
#define __APPS_TESTING_MONKEY_EVENT_H
#ifndef __APPS_SYSTEM_MONKEY_EVENT_H
#define __APPS_SYSTEM_MONKEY_EVENT_H
/****************************************************************************
* Included Files
@ -76,4 +76,4 @@ bool monkey_event_exec(FAR struct monkey_s *monkey,
}
#endif
#endif /* __APPS_TESTING_MONKEY_EVENT_H */
#endif /* __APPS_SYSTEM_MONKEY_EVENT_H */

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_log.h
* apps/system/monkey/monkey_log.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_LOG_H
#define __APPS_TESTING_MONKEY_MONKEY_LOG_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_LOG_H
#define __APPS_SYSTEM_MONKEY_MONKEY_LOG_H
/****************************************************************************
* Included Files
@ -105,4 +105,4 @@ enum monkey_log_level_type_e monkey_log_get_level(void);
}
#endif
#endif /* __APPS_TESTING_MONKEY_MONKEY_LOG_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_LOG_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_main.c
* apps/system/monkey/monkey_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
@ -330,7 +330,7 @@ static FAR struct monkey_s *monkey_init(
{
monkey_set_mode(monkey, MONKEY_MODE_RECORD);
if (!monkey_set_recorder_path(monkey,
CONFIG_TESTING_MONKEY_REC_DIR_PATH))
CONFIG_SYSTEM_MONKEY_REC_DIR_PATH))
{
goto failed;
}

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_recorder.h
* apps/system/monkey/monkey_recorder.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_RECORDER_H
#define __APPS_TESTING_MONKEY_MONKEY_RECORDER_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_RECORDER_H
#define __APPS_SYSTEM_MONKEY_MONKEY_RECORDER_H
/****************************************************************************
* Included Files
@ -109,4 +109,4 @@ enum monkey_recorder_res_e monkey_recorder_reset(
}
#endif
#endif /* __APPS_TESTING_MONKEY_MONKEY_RECORDER_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_RECORDER_H */

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_type.h
* apps/system/monkey/monkey_type.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_TYPE_H
#define __APPS_TESTING_MONKEY_MONKEY_TYPE_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_TYPE_H
#define __APPS_SYSTEM_MONKEY_MONKEY_TYPE_H
/****************************************************************************
* Included Files
@ -131,4 +131,4 @@ struct monkey_s
} playback_ctx;
};
#endif /* __APPS_TESTING_MONKEY_MONKEY_TYPE_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_TYPE_H */

View File

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

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/monkey/monkey_utils.h
* apps/system/monkey/monkey_utils.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_UTILS_H
#define __APPS_TESTING_MONKEY_MONKEY_UTILS_H
#ifndef __APPS_SYSTEM_MONKEY_MONKEY_UTILS_H
#define __APPS_SYSTEM_MONKEY_MONKEY_UTILS_H
/****************************************************************************
* Included Files
@ -105,4 +105,4 @@ FAR const char *monkey_event_type2name(enum monkey_event_e event);
}
#endif
#endif /* __APPS_TESTING_MONKEY_MONKEY_UTILS_H */
#endif /* __APPS_SYSTEM_MONKEY_MONKEY_UTILS_H */

View File

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/resmonitor/CMakeLists.txt
# apps/system/resmonitor/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,27 +20,27 @@
#
# ##############################################################################
if(CONFIG_TESTING_RESMONITOR)
if(CONFIG_SYSTEM_RESMONITOR)
nuttx_add_application(
NAME
showinfo
SRCS
showinfo.c
STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE}
${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY})
${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
if(CONFIG_TESTING_RESMONITOR_FILL)
if(CONFIG_SYSTEM_RESMONITOR_FILL)
nuttx_add_application(
NAME
filldisk
SRCS
filldisk.c
STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE}
${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY})
${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
nuttx_add_application(
NAME
@ -48,9 +48,9 @@ if(CONFIG_TESTING_RESMONITOR)
SRCS
fillcpu.c
STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE}
${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY})
${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
nuttx_add_application(
NAME
@ -58,8 +58,8 @@ if(CONFIG_TESTING_RESMONITOR)
SRCS
fillmem.c
STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE}
${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY})
${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
endif()
endif()

View File

@ -3,24 +3,24 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config TESTING_RESMONITOR
config SYSTEM_RESMONITOR
bool "enable resource monitor [showinfo]"
default n
---help---
Enable resource show with specific duration.
Should not use with LOW_RESOURCE_TEST at the same time.
if TESTING_RESMONITOR
if SYSTEM_RESMONITOR
config TESTING_RESMONITOR_PRIORITY
config SYSTEM_RESMONITOR_PRIORITY
int "Task priority"
default 100
config TESTING_RESMONITOR_STACKSIZE
config SYSTEM_RESMONITOR_STACKSIZE
int "Stack size"
default 4096
config TESTING_RESMONITOR_FILL
config SYSTEM_RESMONITOR_FILL
bool "[filldisk/fillcpu/fillmem]"
default n

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/sensortest/Make.defs
# apps/system/resmonitor/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,6 +20,6 @@
#
############################################################################
ifneq ($(CONFIG_TESTING_SENSORTEST),)
CONFIGURED_APPS += $(APPDIR)/testing/sensortest
ifneq ($(CONFIG_SYSTEM_RESMONITOR),)
CONFIGURED_APPS += $(APPDIR)/system/resmonitor
endif

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/resmonitor/Makefile
# apps/system/resmonitor/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@ -22,14 +22,14 @@
include $(APPDIR)/Make.defs
PRIORITY = $(CONFIG_TESTING_RESMONITOR_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_RESMONITOR_STACKSIZE)
MODULE = $(CONFIG_TESTING_RESMONITOR)
PRIORITY = $(CONFIG_SYSTEM_RESMONITOR_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_RESMONITOR_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_RESMONITOR)
PROGNAME += showinfo
MAINSRC += $(CURDIR)/showinfo.c
ifeq ($(CONFIG_TESTING_RESMONITOR_FILL),y)
ifeq ($(CONFIG_SYSTEM_RESMONITOR_FILL),y)
PROGNAME += filldisk
MAINSRC += $(CURDIR)/filldisk.c
PROGNAME += fillcpu

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/sensortest/CMakeLists.txt
# apps/system/sensortest/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,16 +20,16 @@
#
# ##############################################################################
if(CONFIG_TESTING_SENSORTEST)
if(CONFIG_SYSTEM_SENSORTEST)
nuttx_add_application(
NAME
${CONFIG_TESTING_SENSORTEST_PROGNAME}
${CONFIG_SYSTEM_SENSORTEST_PROGNAME}
PRIORITY
${CONFIG_TESTING_SENSORTEST_PRIORITY}
${CONFIG_SYSTEM_SENSORTEST_PRIORITY}
STACKSIZE
${CONFIG_TESTING_SENSORTEST_STACKSIZE}
${CONFIG_SYSTEM_SENSORTEST_STACKSIZE}
MODULE
${CONFIG_TESTING_SENSORTEST}
${CONFIG_SYSTEM_SENSORTEST}
SRCS
sensortest.c)
endif()

View File

@ -3,27 +3,27 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config TESTING_SENSORTEST
config SYSTEM_SENSORTEST
tristate "Sensor driver test"
default n
depends on SENSORS
---help---
Enable the Sensor driver test
if TESTING_SENSORTEST
if SYSTEM_SENSORTEST
config TESTING_SENSORTEST_PROGNAME
config SYSTEM_SENSORTEST_PROGNAME
string "Program name"
default "sensortest"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config TESTING_SENSORTEST_PRIORITY
config SYSTEM_SENSORTEST_PRIORITY
int "Sensor driver test task priority"
default 100
config TESTING_SENSORTEST_STACKSIZE
config SYSTEM_SENSORTEST_STACKSIZE
int "Sensor driver test stack size"
default DEFAULT_TASK_STACKSIZE

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/resmonitor/Make.defs
# apps/system/sensortest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
@ -20,6 +20,6 @@
#
############################################################################
ifneq ($(CONFIG_TESTING_RESMONITOR),)
CONFIGURED_APPS += $(APPDIR)/testing/resmonitor
ifneq ($(CONFIG_SYSTEM_SENSORTEST),)
CONFIGURED_APPS += $(APPDIR)/system/sensortest
endif

View File

@ -1,5 +1,5 @@
############################################################################
# apps/testing/sensortest/Makefile
# apps/system/sensortest/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
@ -22,10 +22,10 @@
include $(APPDIR)/Make.defs
PROGNAME = $(CONFIG_TESTING_SENSORTEST_PROGNAME)
PRIORITY = $(CONFIG_TESTING_SENSORTEST_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_SENSORTEST_STACKSIZE)
MODULE = $(CONFIG_TESTING_SENSORTEST)
PROGNAME = $(CONFIG_SYSTEM_SENSORTEST_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_SENSORTEST_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_SENSORTEST_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_SENSORTEST)
MAINSRC = sensortest.c

View File

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