Commit Graph

19 Commits

Author SHA1 Message Date
chenrun1
4bc06d9a4b drivertest_block:New test items about cache and memory alignment
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
chenrun1
9768cfab79 drivertest_block:Give redundant space for bad blocks in nand flash
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
chenrun1
3cb5d475ae drivertest_block:Test the availability of each sector of the block.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-07-17 23:15:32 +08:00
Petro Karashchenko
aed0e2873e apps: fix style issues in code
Add missing FAR and CODE to pointers
Remove FAR for non-pointer variables
Remove extra spaces and align the parameters
Add do {} while(0) wrapper in macro
Use nitems to calculate number of elements in arrays

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-11 18:47:50 +08:00
Xiang Xiao
73701cd7cd Replace all strncpy with strlcpy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
Xiang Xiao
aa99d267b7 Change the private default signal number to 32
and remove the unused private signal number macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-05 03:38:24 -07: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
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
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
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