dulibo1
7893712622
drivertest:add include file depended by cmocka
...
from the cmocka.h:
* These headers or their equivalents MUST be included prior to including
* this header file.
* @code
* #include <stdarg.h>
* #include <stddef.h>
* #include <stdint.h>
* #include <setjmp.h>
* @endcode
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-25 16:13:30 +02:00
dulibo1
734baae5a2
test case update follow the regualtor framework
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2024-10-25 16:13:30 +02:00
Shoukui Zhang
dad9b5afa3
drivertest: Modify output format
...
before:
slave size 4slave poll read 0 1 2 3
master write 0 1 2 3
now:
read size = 4
slave poll read 0 1 2 3
master write 0 1 2 3
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2024-09-13 12:33:25 +08:00
yuyun1
ed5ca1c512
i2c slave: add i2c slave test code
...
Signed-off-by: yuyun1 <yuyun1@xiaomi.com>
2024-09-13 12:33:25 +08:00
buxiasen
05def1befc
testing: add case for irqprio, should only work with qemu MPS2_AN500
...
MPS2_AN500 have UART1,2,3,4, TIMER0,1, is a great board to do irqprio
test.
enable CONFIG_ARCH_IRQPRIO, and use
'qemu-system-arm -M mps2-an500 -nographic -kernel nuttx.bin'
to lauch qemu
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-08-26 01:52:06 +08:00
zhangkai25
c2d478a93a
apps/testing/drivertest_pwm.c: Fix apps/testing/drivertest_pwm.c compile_error
...
Description: Divide info.duty into two parts: multi-channel and single-channel
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2024-08-24 11:13:42 +08:00
guanyi
60aea922a5
[testcase] add driver pm testcase
...
Signed-off-by: guanyi <guanyi@xiaomi.com>
2024-08-24 11:08:54 +08:00
liuhongchao
3291c43db3
drivertest: Fix cmocka_driver_framebuffer is not displayed
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2024-08-20 02:50:29 +08:00
liuhongchao
23278f4558
apps/dirvertest: Fix cmocka --list serial port hang
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2024-08-20 02:50:29 +08:00
liuhongchao
7efa80aa51
apps/drivertest: Fix run cmocka_driver_framebuffer No display on the screen
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2024-08-20 02:50:29 +08:00
liuhongchao
0d9b8a8fbf
drivertest: Fix run cmocka_driver_touchpanel crash
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2024-08-20 02:50:29 +08:00
liuhongchao
6ec9d880c4
drivertest: Fix No display when running cmocka_driver_framebuffer
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2024-08-20 02:50:29 +08:00
xuxin19
20c0a7243c
cmake:port testing applications to CMake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-29 22:31:03 +08:00
buxiasen
cda5140c4d
pm_rumtime: test shorten time, make compatible with SMP.
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-06-21 10:20:11 +08:00
renjianguang
d9b8a0ee62
drivertest: Fix drivertest_audio crash
...
1.call AUDIOIOC_RELEASE when finished
2.make sure the driver dequeue all buffers before free the buffers
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2023-12-28 05:38:58 -08:00
Xiang Xiao
083eb5e993
Fix the wrong comment banner
...
"Private Type"->"Private Types"
"Public Data Type"->"Public Types"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-03 14:27:14 -03:00
Huang Qi
07bbbd541c
testing: Fix cmocka_driver_block give more than once
...
Fix:
```
/home/huang/Work/vela/sifli/apps/Application.mk:273: target 'drivertest_block.c.home.huang.Work.vela.sifli.apps.testing.drivertest.o' given more than once in the same rule
/home/huang/Work/vela/sifli/apps/Application.mk:297: target '/home/huang/Work/vela/sifli/apps/builtin/registry/cmocka_driver_block.bdat' given more than once in the same rule
CC: romfs_main.c /home/huang/Work/vela/sifli/apps/Application.mk:273: target 'drivertest_block.c.home.huang.Work.vela.sifli.apps.testing.drivertest.o' given more than once in the same rule
/home/huang/Work/vela/sifli/apps/Application.mk:297: target '/home/huang/Work/vela/sifli/apps/builtin/registry/cmocka_driver_block.bdat' given more than once in the same rule
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-11-09 23:53:30 +08:00
Xiang Xiao
2d6d199c49
Fix drivertest_watchdog.c:284:33: error: storage size of 'reset_cause' isn't known
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-26 00:45:16 +03:00
Xiang Xiao
610ba20527
Fix ./drivertest_rtc.c:43:10: fatal error: nuttx/time.h: No such file or director
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 23:03:00 +08:00
Xiang Xiao
99a8c5937c
Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'
...
Remove the unsupported -p option
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-25 01:08:49 +03:00
dulibo1
dd9290b6bd
pm:add pm runtime testcase
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:24 +08:00
chenrun1
2639f044cc
drivertest_block:Fix insufficient number of erasures for mtd devices
...
when operating multiple rwblocks.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-09-07 13:51:29 +08:00
dulibo1
afcc8d8f62
regulator:add testcase for regualtor register
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-29 13:41:08 +08:00
Xiang Xiao
7251645685
Fix some coding style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
Xiang Xiao
856416540c
Remove the definition of MIN/MAX
...
use the macro in sys/params.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
Xiang Xiao
054cf3b1cb
Change all sizeof(arr)/sizeof(arr[0]) to nitems
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
liuhongchao
75f04dd775
drivertest:Add touch panel test case.
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2023-08-14 09:05:52 +08:00
xucheng5
6196e03337
testing/drivertest : fix build error
...
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-08-11 20:15:28 +08:00
xucheng5
c7955e5faf
drivertest/adc : support cmocka_driver_adc
...
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-08-11 13:51:30 +08:00
Xiang Xiao
d420036cbc
testing/drivertest: Fix typo error in drivertest_uart.c
...
Made by:
commit 5659906fdfdac0a363aecb329c39c936324dcc55
Author: Gregory Nutt <gnutt@nuttx.org>
Date: Fri Mar 24 12:02:04 2023 -0600
Changes to apps needed by nutts PR 8885
needby:965551
ostest contains some logic that depends on internal implementation of signal sets and ostest must be updated to match those changes.
There is no particular impact from this PR. This PR is the result of impact from nuttx 8885.
Tested with nuttx 8885
Change-Id: I2550888ee29aadcfcf8a98bfe5690920ee2b17d1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-11 13:50:55 +08:00
dulibo1
3c674fb4d8
add test case for regulator
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-11 00:45:16 +08:00
yangguangcai
5c6ffe1a4d
drivertest:fix timer testcase
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:41:05 +08:00
yangguangcai
1dc7845c06
drivertest/timer:test interface getstatus.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:41:05 +08:00
yangguangcai
ffebcfbb9f
testing/drivertest:fix variable may be negative
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:41:05 +08:00
rongyichang
9abb0a2592
apps/testing: support alignment for lcd driver test
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
rongyichang
6d11e1e7e2
drivertest/lcd: fix draw area calc error in LCD rect
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
rongyichang
694fbd2f77
apps/testing : correct the dependency option of fb driver test
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
rongyichang
49f81d387a
apps/testing/driver_test:fix warning
...
drivertest_lcd.c:234:12: warning: assignment to 'uint16_t *' {aka 'short unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
rongyichang
b2d3fb726d
testing/drivertest:add testcase for LCD driver
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
rongyichang
7c18361faf
testing/drivertest:add testcase for framebuffer driver
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-08-10 20:36:36 +08:00
yangguangcai
3717ce2094
watchdog:input watchdog deviation.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:34:47 +08:00
yangguangcai
16872c582c
test/watchdog:call board_ioctl from board_reset_cause.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:34:47 +08:00
yangguangcai
d4b202ec7e
test/watchdog:test interface getstatus.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:34:47 +08:00
yangguangcai
76dff2b924
watchdog:test watchdog not depend on fs.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-10 20:34:47 +08:00
jinxiuxu
4f7abe0231
apps/testing/drivertest:add audio drivertest
...
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2023-08-10 00:51:07 +08:00
yangguangcai
41388daf74
rtc test:add delay after set time.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-09 23:47:09 +08:00
yangguangcai
768ce91296
drivertest/rtc:input rtc alarm deviation.
...
Some vendor hardware precision cannot meet the requirements,
and the deviation needs to be input at this time.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-09 23:47:09 +08:00
yangguangcai
0c8579151f
drivertest/rtc:fix rtc testcase.
...
deviation from (-10,0) to (-10,10)
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-09 23:47:09 +08:00
yangguangcai
cd802f6a8f
drivertest/rtc:add test case.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-09 23:47:09 +08:00
yangguangcai
89ad9c6527
test/drivertest:fix rtc settime incorrect.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-09 23:47:09 +08:00