yinshengkai
3e870833ab
testing: fix osperf running error in SMP mode
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:10:23 +08:00
yinshengkai
9d8a364e16
testing/osperf: fix qemu-armv8a compilation error
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-23 15:10:23 +08:00
dulibo1
dd9290b6bd
pm:add pm runtime testcase
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:24 +08:00
zhangchao53
60778f6f8c
support xml report and generate tool
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-09-21 12:14:12 +08:00
guoshichao
68b3030f23
testing/ltp: add config.h file
...
this config.h using to control the test procedure of the relative
test cases. this config.h file is generated by ltp project internal
build file, as we are nuttx build system, so need to manage this file
by manual
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-19 11:13:44 +08:00
TaiJuWu
9f2f86441d
Fix sigprocmask
...
1. SIGSTOP and SIGKILL should not be used as test. In g_some_signals,
SIGKILL is used.
2. The SIGSTOP and SIGKILL flags of current task are set so we need to
delete them.
2023-09-16 00:08:34 +03:00
Xuxingliang
facc9ddc63
testing/mm: use unified name for macros
...
All macros in mm.h start with MM_
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2023-09-12 22:09:43 +08:00
zhangchao53
791d1fc08d
add superpi fold and nist-sts fold to gitignore
2023-09-12 10:08:35 +08:00
xuxin19
0ddcedcf6e
ignore specific waring on MacOS for CI break
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 20:40:22 +08:00
xuxin19
258d637df3
Makefile:resolve Mac make error block
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 20:40:22 +08:00
zhangchao53
28d4c58448
run testsuites where name match pattern value of --suite
2023-09-08 16:01:06 +03:00
guoshichao
b7e08d4fba
ltp/makefile: rm the ltp.zip file after unzipped
...
the ltp.zip file is not tracked in git record, so after download and
unzip finished, we do not need to keep this ltp.zip file.
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-08 17:24:34 +08:00
xucheng5
723b91851f
app/ltp : enable can_filter/can_rcv_own_msgs
...
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-09-07 11:24:47 +03: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
makejian
16a1655bba
testing/crypto: fix aescbc crash when update iv
...
iv content always should be updated when performing encryption operation, so need update testing case
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-07 13:15:35 +08:00
fengxuesong
ee0bc579c1
solve CI compilation error problem
...
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-09-06 19:21:19 +03:00
yangguangcai
de82824fbf
add test atomic
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-09-05 22:10:48 +08:00
guoshichao
c57794fe1f
ltp/makefile: apply that patch that to fix the build warning in ltp
...
the origin ltp testcases has many build warnings which consider error in
Nuttx, thus to apply the patches to fix these build warnings
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-03 22:12:57 +08:00
simbit18
17a497492a
Fix Kconfig style
...
Remove spaces from Kconfig files
Add TABs
Add comments
2023-09-01 01:21:54 +08:00
chenrun1
844a31b24c
memtester:update format
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chenrun1
56045e8e3d
memtester:Two new bit-width test items
...
Because it may cause unaligned access problems with some hardware, these
two tests are not turned on by default, and are enabled or disabled
through Kconfig.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chenrun1
de3746e2ba
memtester:Adaptation of memtester
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-08-29 17:07:58 +08:00
chao an
6923c9cf57
testing: fix visual studio Compiler Error C2057
...
expected constant expression
The context requires a constant expression, an expression whose value is known at compile time.
The compiler must know the size of a type at compile time in order to allocate space for an instance of that type.
Reference:
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2057?view=msvc-170
Signed-off-by: chao an anchao@xiaomi.com
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 15:44:09 +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
fangxinyong
512af7fbd7
ltp/makefile: filter testcases based on defconfig
...
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-25 21:17:56 +03:00
Zhe Weng
87838bb62c
ostest/wqueue: Check return value for pthread ops.
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-22 13:55:03 +08:00
Andre Heinemans
8757c6934c
Added tools for NXP SE05x (secure element)
2023-08-22 10:12:31 +08:00
Xiang Xiao
6716f15d7b
testing: Check CONFIG_TLS_NELEM is defined before using it
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-21 15:08:17 +03: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
makejian
c25f5e1955
crypto: fix formatting issues in commit #1932
...
(1) add 'FAR' in mbedtls_hardware_poll
(2) fix indentation issues in hash testcase
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-17 14:31:41 +08:00
Shoukui Zhang
9cf473c88c
mtd_config_fs: Default select MTD_CONFIG_NAMED config
...
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2023-08-16 22:06:28 +08:00
yangjiao
37ac7f923a
Update cmocka_main.c to support following functions:
...
1. list all the testcases with "--list";
2. run some testcases with "--test";
3. show cmocka help message;
4. skip some testcases with "--skip";
Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-08-16 01:00:36 +08:00
yangjiao
4b521051d3
cmocka/Kconfig: add the depends on item "LIBC_REGEX".
...
The "regex" library will be used in cmocka test, so add the dependency relationship for this config.
Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-08-16 01:00:36 +08:00
yangjiao
f0f94a1235
testing/cmocka:add a patch.
...
cmocka modification upload Nuttx community preparation: upload a patch with recent changes for cmocka source code.
Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-08-16 01:00:36 +08:00
liuhongchao
75f04dd775
drivertest:Add touch panel test case.
...
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2023-08-14 09:05:52 +08:00
anjiahao
34f71ec25b
fstest:fix build break
...
fstest_main.c:340:47: note: expected ‘struct fstest_ctx_s *’ but argument is of type ‘fsblkcnt_t’ {aka ‘long long unsigned int’}
340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
| ~~~~~~~~~~~~~~~~~~~~~^~~
fstest_main.c:1168:13: error: too few arguments to function ‘fstest_gc’
1168 | ret = fstest_gc(buf.f_bfree);
| ^~~~~~~~~
fstest_main.c:340:12: note: declared here
340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
| ^~~
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-08-11 21:04:44 +08:00
xucheng5
6196e03337
testing/drivertest : fix build error
...
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-08-11 20:15:28 +08:00
zhangchao53
ba19e5b92b
porting superPi to vela,add makefile
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-08-11 18:25:07 +08:00
makejian
fcbf7cc1aa
testing/crypto: add md5/sha1/sha256/sha512 testcases
...
add hash test cases to test the support for the hash algorithm in crypto device
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-11 18:13:11 +08:00
zhangchao53
f1154b5be2
Memory leaks can be checked using cmocka
...
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-08-11 18:09:40 +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
dulibo1
6534f3d87c
add batterydump tool for dump the battery info
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-08-10 20:44:03 +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