Commit Graph

272 Commits

Author SHA1 Message Date
Gustavo Henrique Nihei
f500c64962 Include missing headers throughout the repository
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-07 09:58:13 +08:00
Xiang Xiao
21bc466a2b Remove the tail space char from all files
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 00:18:36 +02:00
xinbingnan
9246502aca drivertest/drivertest_uart: uart driver testcase
VELAPLATFO-4612

There are three test.

1. Write a long default string into the serial port.
2. Read the default string given by the last test from the serial port.
3. Manually execute the `test_content_ gen.py` script and write the text into the serial device to test the burst capability or run this script and specify device path to automatically test.

Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-02-24 17:13:06 +08:00
lilei19
41f60bd669 change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
crafcat7
b8533e0f70 drivertest/gpio:Add FAR to the pointer 2023-02-22 16:17:04 +08:00
crafcat7
fd0ac1b8fb drivertest/block:Add FAR to the pointer 2023-02-22 16:16:51 +08:00
xinbingnan
5a8e089c66 drivertest/drivertest_i2c_spi.c: add testcase for i2c and spi
The BMI160 6-axis acceleration sensor is used as the peripheral of the I2C test. The main purpose of the test is to open the peripheral and read the data of the sensor. If it is read successfully, the test is successful.

Add compiled constraints to make it work only when the bmi160 driver is turned on.

Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-02-22 02:46:36 +08:00
yintao
49f88d50b2 testing/cmocka: update cmocka version and add patch
Specify cmocka as the latest version 1.15
add patch to enable cmocka to output with syslog

Signed-off-by: yintao <yintao@xiaomi.com>
2023-02-17 23:44:30 +08:00
wangbowen6
f3d06972dc drivertest_relay: add relay test case
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-02-17 23:43:11 +08:00
crafcat7
1789e685a2 testing/drivertest: add gpio driver test 2023-02-12 21:48:24 +08:00
crafcat7
9ee3640b62 testing/drivertest: add block driver test 2023-02-09 19:52:52 +08:00
cuiziwei
9db9ef37b4 testing/drivertest:add watchdog test case.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-02-09 03:06:22 +08:00
cuiziwei
7394b4584d testing/drivertest: add pwm driver test
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-02-08 21:13:27 +08:00
cuiziwei
8a131cb7e7 testing/drivertest: add timer driver test
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-02-07 00:54:03 +08:00
cuiziwei
efa6e60b45 testing/drivertest:add rtc test case.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-02-06 03:54:02 +08:00
Xiang Xiao
d9eedb052e tesint/irtest: Include unistd.h to get close prototype
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 20:41:37 +02:00
Xiang Xiao
a29d9ea9da fsutils/examples: Include unistd.h explicitly
to get the prototypes or macros are defined in it

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Xiang Xiao
28d71b79a2 Fix sensortest.c:168:40: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-02 18:46:14 -03:00
Xiang Xiao
fea1b197d4 testing/sensortest: Fix the typo for ecg sensor
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-02 14:51:38 -03:00
liucheng5
bf140bcaae fix: sensor: support ECG event lead info
Lead info is added into sensor_ecg event struct. Uorb and sensortest shall be modified.

Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2023-02-02 22:49:22 +08:00
jinxudong
57af6174f0 fix: sensor: update hall data type
update hall data type to int32_t

Signed-off-by: jinxudong <jinxudong@xiaomi.com>
2023-02-02 22:49:22 +08:00
yintao
c375f3e6fc testing/drivertest: modify the test source code name
Signed-off-by: yintao <yintao@xiaomi.com>
2023-02-02 22:14:27 +08:00
yintao
0a9b58ff88 testing/drivertest: add drivertest for cmocka driver testcases
Signed-off-by: yintao <yintao@xiaomi.com>
2023-02-02 22:14:27 +08:00
Xiang Xiao
8cfcd274b2 testint/irtest: Remove ERROR macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-02 13:58:24 +01:00
Gustavo Henrique Nihei
b0da60e498 apps: Use MIN/MAX definitions from "sys/param.h"
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-02 00:35:14 +02:00
Masayuki Ishikawa
bb8b5493e0 testing: ostest: Show errno in message queue test
Summary:
- This commit shows errno in message queue test

Impact:
- None

Testing:
- Tested with esp32-devkitc:smp on QEMU-7.1

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-01-31 22:10:59 +08:00
haopengxiang
1f4292c250 testing/cmocka: forwarding cmocka log message to syslog channel
and ignore cmocka files in apps

Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-26 08:13:00 +02:00
caofuqi1
248a9f772b netutils/cjson: Enable cjson test 2023-01-26 08:12:19 +02:00
ligd
e9c6fa0497 cpuload: add cpulad test case
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-26 08:11:04 +02:00
Xiang Xiao
cfed5f08fd Minor typo fix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 23:20:07 +02:00
anjiahao
731e7470b2 crypto:add aescbc testcase to testing
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-17 01:57:39 +08:00
anjiahao
b366a31644 crypto:add getfd for crypto testcase
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-17 01:57:39 +08:00
dongjiuzhu1
2e0c1c1ddb app/fstest: config the number of open file and the maximum size of file
adjust resource using on resource-constrained systems

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2022-12-29 13:38:44 +08:00
yintao
3fbb452b4a cmocka:Add automated testing framework cmocka in testing
Signed-off-by: yintao <yintao@xiaomi.com>
2022-12-22 00:58:51 +08:00
ligd
7f11c91054 ostest: remove printf & sem_wait in sigaction
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-21 13:38:18 +09:00
pengyiqiang
8ec53eeb52 testing/monkey: add auto select uinput
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-11-29 04:54:20 +08:00
qinwei1
c86509be4c apps: getpid should return process id not thread id
Summary:
   following the change in the nuttx kernel, implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id

Refer:
 https://github.com/apache/incubator-nuttx/issues/2499
 https://github.com/apache/incubator-nuttx/pull/2518

Nuttx Kernel PR:
 https://github.com/apache/incubator-nuttx/pull/7597

update apps code

Testing PASSED with qemu( 32/64 )

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:45 +08:00
zhangyuan21
3dabc24635 ostest: reset g_restartstep when test case restart
The g_restartstep value is not initialized when ostest repeated.
2022-11-16 00:07:38 +08:00
crafcat7
a799738184 testing/fstest:Remove duplicate macro references in source code 2022-11-14 22:41:53 +08:00
crafcat7
606ebe99d9 testing/fstest:Remove duplicate macro references in source code
There is a macro configuration in the source code, and the macro configuration is also referenced in Kconfig. Delete the macro configuration in the source file, whichever is in Kconfig.
2022-11-14 22:41:53 +08:00
ligd
b16eaf9d8e mm: add memory stress test
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-11-11 22:26:59 +08:00
yinshengkai
ee4d8b738f Makefile: replace INCDIR to INCDIR_PREFIX
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
Fotis Panagiotopoulos
f85a6b6fb9 Added poweroff in fs and mm tests. 2022-11-08 02:52:46 +08:00
wangbowen6
fe28ed0520 mm_main: delete realloc boundary test
It's better to add DEBUGASSERT in mm code to check the unaligned
problem instead add a complex test case.

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-11-01 19:18:08 +08:00
Xiang Xiao
2962af6fe6 Fix fatal error: array: No such file or directory
enable test_stl2 only when CONFIG_LIBCXX is enabled
since uClibc++/minic++ doesn't have array header file

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 16:51:25 +08:00
nietingting
0a6539bfc5 ltp: fix build fail with "argument too long" issue on 20.04
Signed-off-by: nietingting <nietingting@xiaomi.com>
2022-10-22 22:14:44 +08:00
anjiahao
65668b33d9 ostest:add sem protocl to priority inheritance
ostest testcase use sem as lock
need set protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 16:23:42 +09:00
Xiang Xiao
6f01a3b3d4 testing/ostest: Remove the code which reference CONFIG_SEM_NNESTPRIO
since CONFIG_SEM_NNESTPRIO is removed by:
https://github.com/apache/incubator-nuttx/pull/6318

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-21 09:18:26 +02:00
Masayuki Ishikawa
ee7b47ba4e testing: ostest: Fix task_restart test
Summary:
- This commit fixes the task_restart test for the 2nd time execution

Impact:
- None

Testing:
- sim:ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-21 01:34:15 +08:00
Xiang Xiao
b659f0fbdf Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00