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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,19 +20,19 @@
# #
# ############################################################################## # ##############################################################################
if(CONFIG_TESTING_IRTEST) if(CONFIG_SYSTEM_IRTEST)
file(GLOB CURRENT_SRCS *.cxx) file(GLOB CURRENT_SRCS *.cxx)
list(REMOVE_ITEM CURRENT_SRCS main.cxx) list(REMOVE_ITEM CURRENT_SRCS main.cxx)
set(SRCS main.cxx ${CURRENT_SRCS}) set(SRCS main.cxx ${CURRENT_SRCS})
nuttx_add_application( nuttx_add_application(
NAME NAME
${CONFIG_TESTING_IRTEST_PROGNAME} ${CONFIG_SYSTEM_IRTEST_PROGNAME}
PRIORITY PRIORITY
${CONFIG_TESTING_IRTEST_PRIORITY} ${CONFIG_SYSTEM_IRTEST_PRIORITY}
STACKSIZE STACKSIZE
${CONFIG_TESTING_IRTEST_STACKSIZE} ${CONFIG_SYSTEM_IRTEST_STACKSIZE}
MODULE MODULE
${CONFIG_TESTING_IRTEST} ${CONFIG_SYSTEM_IRTEST}
SRCS SRCS
${SRCS}) ${SRCS})
endif() endif()

View File

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

View File

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

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/testing/irtest/Makefile # apps/system/irtest/Makefile
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@ -22,10 +22,10 @@
include $(APPDIR)/Make.defs include $(APPDIR)/Make.defs
PROGNAME = $(CONFIG_TESTING_IRTEST_PROGNAME) PROGNAME = $(CONFIG_SYSTEM_IRTEST_PROGNAME)
PRIORITY = $(CONFIG_TESTING_IRTEST_PRIORITY) PRIORITY = $(CONFIG_SYSTEM_IRTEST_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_IRTEST_STACKSIZE) STACKSIZE = $(CONFIG_SYSTEM_IRTEST_STACKSIZE)
MODULE = $(CONFIG_TESTING_IRTEST) MODULE = $(CONFIG_SYSTEM_IRTEST)
MAINSRC = main.cxx MAINSRC = main.cxx
CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.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 * SPDX-License-Identifier: Apache-2.0
* *
@ -46,7 +46,7 @@
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t cond = PTHREAD_COND_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 * Private Functions
@ -190,7 +190,7 @@ CMD1(open_device, const char *, file_name)
} }
int index = 0; int index = 0;
for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV; index++) for (; index < CONFIG_SYSTEM_IRTEST_MAX_NIRDEV; index++)
{ {
if (g_irdevs[index] == -1) 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; return ERROR;
} }
@ -209,7 +209,7 @@ CMD1(open_device, const char *, file_name)
CMD1(close_device, size_t, index) CMD1(close_device, size_t, index)
{ {
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV) if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{ {
return ERROR; return ERROR;
} }
@ -226,15 +226,15 @@ CMD1(close_device, size_t, index)
CMD1(write_data, 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; return ERROR;
} }
int size = 0; 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 > (); unsigned int tmp = get_next_arg < unsigned int > ();
if (tmp == 0) if (tmp == 0)
@ -263,7 +263,7 @@ CMD1(write_data, size_t, index)
CMD2(read_data, size_t, index, size_t, size) 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; return ERROR;
} }
@ -291,7 +291,7 @@ CMD2(read_data, size_t, index, size_t, size)
CMD1(get_features, size_t, index) CMD1(get_features, size_t, index)
{ {
if (index >= CONFIG_TESTING_IRTEST_MAX_NIRDEV) if (index >= CONFIG_SYSTEM_IRTEST_MAX_NIRDEV)
{ {
return ERROR; return ERROR;
} }
@ -308,7 +308,7 @@ CMD1(get_features, size_t, index)
CMD1(get_send_mode, 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; return ERROR;
} }
@ -325,7 +325,7 @@ CMD1(get_send_mode, size_t, index)
CMD1(get_rec_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; return ERROR;
} }
@ -342,7 +342,7 @@ CMD1(get_rec_mode, size_t, index)
CMD1(get_rec_resolution, 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; return ERROR;
} }
@ -359,7 +359,7 @@ CMD1(get_rec_resolution, size_t, index)
CMD1(get_min_timeout, 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; return ERROR;
} }
@ -376,7 +376,7 @@ CMD1(get_min_timeout, size_t, index)
CMD1(get_max_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; return ERROR;
} }
@ -393,7 +393,7 @@ CMD1(get_max_timeout, size_t, index)
CMD1(get_length, 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; return ERROR;
} }
@ -410,7 +410,7 @@ CMD1(get_length, size_t, index)
CMD2(set_send_mode, size_t, index, unsigned int, mode) 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; 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) 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; 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) 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; 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) 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; 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) 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; 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) 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; 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) 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; 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) 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; 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) 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; 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) 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; return ERROR;
} }
@ -514,7 +514,7 @@ CMD2(set_rec_carrier_range, size_t, index, unsigned int, carrier)
void init_device() 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; 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_IRTEST_CMD_HPP #ifndef __APPS_SYSTEM_IRTEST_CMD_HPP
#define __APPS_TESTING_IRTEST_CMD_HPP #define __APPS_SYSTEM_IRTEST_CMD_HPP
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -179,4 +179,4 @@ inline float get_next_arg()
void init_device(); 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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_IRTEST_ENUM_HPP #ifndef __APPS_SYSTEM_IRTEST_ENUM_HPP
#define __APPS_TESTING_IRTEST_ENUM_HPP #define __APPS_SYSTEM_IRTEST_ENUM_HPP
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -71,4 +71,4 @@ struct enum_type
extern const struct enum_type *g_enum_table[]; 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 * 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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,7 +20,7 @@
# #
# ############################################################################## # ##############################################################################
if(CONFIG_TESTING_MONKEY) if(CONFIG_SYSTEM_MONKEY)
file(GLOB CURRENT_SRCS *.c) file(GLOB CURRENT_SRCS *.c)
list(REMOVE_ITEM CURRENT_SRCS monkey_main.c) list(REMOVE_ITEM CURRENT_SRCS monkey_main.c)
set(SRCS monkey_main.c ${CURRENT_SRCS}) set(SRCS monkey_main.c ${CURRENT_SRCS})
@ -28,11 +28,11 @@ if(CONFIG_TESTING_MONKEY)
NAME NAME
monkey monkey
PRIORITY PRIORITY
${CONFIG_TESTING_MONKEY_PRIORITY} ${CONFIG_SYSTEM_MONKEY_PRIORITY}
STACKSIZE STACKSIZE
${CONFIG_TESTING_MONKEY_STACKSIZE} ${CONFIG_SYSTEM_MONKEY_STACKSIZE}
MODULE MODULE
${CONFIG_TESTING_MONKEY} ${CONFIG_SYSTEM_MONKEY}
SRCS SRCS
${SRCS}) ${SRCS})
endif() endif()

View File

@ -3,24 +3,24 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
menuconfig TESTING_MONKEY menuconfig SYSTEM_MONKEY
tristate "Monkey test" tristate "Monkey test"
select UINPUT_TOUCH select UINPUT_TOUCH
select UINPUT_BUTTONS select UINPUT_BUTTONS
select LIBC_PRINT_EXTENSION select LIBC_PRINT_EXTENSION
default n default n
if TESTING_MONKEY if SYSTEM_MONKEY
config TESTING_MONKEY_PRIORITY config SYSTEM_MONKEY_PRIORITY
int "Task priority" int "Task priority"
default 110 default 110
config TESTING_MONKEY_STACKSIZE config SYSTEM_MONKEY_STACKSIZE
int "Stack size" int "Stack size"
default 4096 default 4096
config TESTING_MONKEY_REC_DIR_PATH config SYSTEM_MONKEY_REC_DIR_PATH
string "Recorder directory path" string "Recorder directory path"
default "/data/monkey" 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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,6 +20,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_TESTING_MONKEY),) ifneq ($(CONFIG_SYSTEM_MONKEY),)
CONFIGURED_APPS += $(APPDIR)/testing/monkey CONFIGURED_APPS += $(APPDIR)/system/monkey
endif endif

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# apps/testing/monkey/Makefile # apps/system/monkey/Makefile
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@ -25,9 +25,9 @@ include $(APPDIR)/Make.defs
# Monkey test example # Monkey test example
PROGNAME = monkey PROGNAME = monkey
PRIORITY = $(CONFIG_TESTING_MONKEY_PRIORITY) PRIORITY = $(CONFIG_SYSTEM_MONKEY_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_MONKEY_STACKSIZE) STACKSIZE = $(CONFIG_SYSTEM_MONKEY_STACKSIZE)
MODULE = $(CONFIG_TESTING_MONKEY) MODULE = $(CONFIG_SYSTEM_MONKEY)
MAINSRC = monkey_main.c 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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_H
#define __APPS_TESTING_MONKEY_MONKEY_H #define __APPS_SYSTEM_MONKEY_MONKEY_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -97,4 +97,4 @@ bool monkey_set_recorder_path(FAR struct monkey_s *monkey,
} }
#endif #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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_ASSERT_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_ASSERT_H
#define __APPS_TESTING_MONKEY_MONKEY_ASSERT_H #define __APPS_SYSTEM_MONKEY_MONKEY_ASSERT_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -36,4 +36,4 @@
#define MONKEY_ASSERT(expr) DEBUGASSERT(expr) #define MONKEY_ASSERT(expr) DEBUGASSERT(expr)
#define MONKEY_ASSERT_NULL(ptr) MONKEY_ASSERT(ptr != NULL) #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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_DEV_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_DEV_H
#define __APPS_TESTING_MONKEY_MONKEY_DEV_H #define __APPS_SYSTEM_MONKEY_MONKEY_DEV_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -96,4 +96,4 @@ int monkey_dev_get_available(FAR struct monkey_dev_s *devs[], int dev_num);
} }
#endif #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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_EVENT_H #ifndef __APPS_SYSTEM_MONKEY_EVENT_H
#define __APPS_TESTING_MONKEY_EVENT_H #define __APPS_SYSTEM_MONKEY_EVENT_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -76,4 +76,4 @@ bool monkey_event_exec(FAR struct monkey_s *monkey,
} }
#endif #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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_LOG_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_LOG_H
#define __APPS_TESTING_MONKEY_MONKEY_LOG_H #define __APPS_SYSTEM_MONKEY_MONKEY_LOG_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -105,4 +105,4 @@ enum monkey_log_level_type_e monkey_log_get_level(void);
} }
#endif #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 * SPDX-License-Identifier: Apache-2.0
* *
@ -330,7 +330,7 @@ static FAR struct monkey_s *monkey_init(
{ {
monkey_set_mode(monkey, MONKEY_MODE_RECORD); monkey_set_mode(monkey, MONKEY_MODE_RECORD);
if (!monkey_set_recorder_path(monkey, if (!monkey_set_recorder_path(monkey,
CONFIG_TESTING_MONKEY_REC_DIR_PATH)) CONFIG_SYSTEM_MONKEY_REC_DIR_PATH))
{ {
goto failed; 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 * 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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_RECORDER_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_RECORDER_H
#define __APPS_TESTING_MONKEY_MONKEY_RECORDER_H #define __APPS_SYSTEM_MONKEY_MONKEY_RECORDER_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -109,4 +109,4 @@ enum monkey_recorder_res_e monkey_recorder_reset(
} }
#endif #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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_TYPE_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_TYPE_H
#define __APPS_TESTING_MONKEY_MONKEY_TYPE_H #define __APPS_SYSTEM_MONKEY_MONKEY_TYPE_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -131,4 +131,4 @@ struct monkey_s
} playback_ctx; } 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 * 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 * SPDX-License-Identifier: Apache-2.0
* *
@ -20,8 +20,8 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __APPS_TESTING_MONKEY_MONKEY_UTILS_H #ifndef __APPS_SYSTEM_MONKEY_MONKEY_UTILS_H
#define __APPS_TESTING_MONKEY_MONKEY_UTILS_H #define __APPS_SYSTEM_MONKEY_MONKEY_UTILS_H
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
@ -105,4 +105,4 @@ FAR const char *monkey_event_type2name(enum monkey_event_e event);
} }
#endif #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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,27 +20,27 @@
# #
# ############################################################################## # ##############################################################################
if(CONFIG_TESTING_RESMONITOR) if(CONFIG_SYSTEM_RESMONITOR)
nuttx_add_application( nuttx_add_application(
NAME NAME
showinfo showinfo
SRCS SRCS
showinfo.c showinfo.c
STACKSIZE STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE} ${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY}) ${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
if(CONFIG_TESTING_RESMONITOR_FILL) if(CONFIG_SYSTEM_RESMONITOR_FILL)
nuttx_add_application( nuttx_add_application(
NAME NAME
filldisk filldisk
SRCS SRCS
filldisk.c filldisk.c
STACKSIZE STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE} ${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY}) ${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
nuttx_add_application( nuttx_add_application(
NAME NAME
@ -48,9 +48,9 @@ if(CONFIG_TESTING_RESMONITOR)
SRCS SRCS
fillcpu.c fillcpu.c
STACKSIZE STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE} ${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY}) ${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
nuttx_add_application( nuttx_add_application(
NAME NAME
@ -58,8 +58,8 @@ if(CONFIG_TESTING_RESMONITOR)
SRCS SRCS
fillmem.c fillmem.c
STACKSIZE STACKSIZE
${CONFIG_TESTING_RESMONITOR_STACKSIZE} ${CONFIG_SYSTEM_RESMONITOR_STACKSIZE}
PRIORITY PRIORITY
${CONFIG_TESTING_RESMONITOR_PRIORITY}) ${CONFIG_SYSTEM_RESMONITOR_PRIORITY})
endif() endif()
endif() endif()

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/testing/resmonitor/fillcpu.c * apps/system/resmonitor/fillcpu.c
* *
* SPDX-License-Identifier: Apache-2.0 * 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 * 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 * 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 * 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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,16 +20,16 @@
# #
# ############################################################################## # ##############################################################################
if(CONFIG_TESTING_SENSORTEST) if(CONFIG_SYSTEM_SENSORTEST)
nuttx_add_application( nuttx_add_application(
NAME NAME
${CONFIG_TESTING_SENSORTEST_PROGNAME} ${CONFIG_SYSTEM_SENSORTEST_PROGNAME}
PRIORITY PRIORITY
${CONFIG_TESTING_SENSORTEST_PRIORITY} ${CONFIG_SYSTEM_SENSORTEST_PRIORITY}
STACKSIZE STACKSIZE
${CONFIG_TESTING_SENSORTEST_STACKSIZE} ${CONFIG_SYSTEM_SENSORTEST_STACKSIZE}
MODULE MODULE
${CONFIG_TESTING_SENSORTEST} ${CONFIG_SYSTEM_SENSORTEST}
SRCS SRCS
sensortest.c) sensortest.c)
endif() endif()

View File

@ -3,27 +3,27 @@
# see the file kconfig-language.txt in the NuttX tools repository. # see the file kconfig-language.txt in the NuttX tools repository.
# #
config TESTING_SENSORTEST config SYSTEM_SENSORTEST
tristate "Sensor driver test" tristate "Sensor driver test"
default n default n
depends on SENSORS depends on SENSORS
---help--- ---help---
Enable the Sensor driver test Enable the Sensor driver test
if TESTING_SENSORTEST if SYSTEM_SENSORTEST
config TESTING_SENSORTEST_PROGNAME config SYSTEM_SENSORTEST_PROGNAME
string "Program name" string "Program name"
default "sensortest" default "sensortest"
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
config TESTING_SENSORTEST_PRIORITY config SYSTEM_SENSORTEST_PRIORITY
int "Sensor driver test task priority" int "Sensor driver test task priority"
default 100 default 100
config TESTING_SENSORTEST_STACKSIZE config SYSTEM_SENSORTEST_STACKSIZE
int "Sensor driver test stack size" int "Sensor driver test stack size"
default DEFAULT_TASK_STACKSIZE 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 # SPDX-License-Identifier: Apache-2.0
# #
@ -20,6 +20,6 @@
# #
############################################################################ ############################################################################
ifneq ($(CONFIG_TESTING_RESMONITOR),) ifneq ($(CONFIG_SYSTEM_SENSORTEST),)
CONFIGURED_APPS += $(APPDIR)/testing/resmonitor CONFIGURED_APPS += $(APPDIR)/system/sensortest
endif endif

View File

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