Commit Graph

260 Commits

Author SHA1 Message Date
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
Xiang Xiao
893387b2c5 Fix the minor style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Xiang Xiao
4941182cc6 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Masayuki Ishikawa
97440889ac testing: ostest: Add ASSERT in case of errors
Summary:
- This commit adds ASSERT in case of errors to stop the
  execution of ostest
- Also, add some 'ERROR' messages

Impact:
- None

Testing:
- Run ostest with several configs

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-16 13:24:50 +08:00
zhangyuan21
7fcba8a119 ostest: add semaphore wait case for task restart 2022-10-11 15:29:45 +08:00
Xiang Xiao
9291d07a87 Fix the coding style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-06 12:20:32 +02:00
Petro Karashchenko
8e8d461590 ostest/prioinherit: fix priority inheritance test when compiled without optimisation
When application is compiled without optimisation the stack usage
is higher. 1K stack of adversary task is getting overflowed and that
leads to crash. Set stack size to CONFIG_DEFAULT_TASK_STACKSIZE for
adversary task

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-01 11:41:26 +08:00
Xiang Xiao
0dc5e9f469 Replace #include <queue.h> with #include <nuttx/queue.h>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-26 08:04:51 +02:00
anjiahao
ac4b42fee7 testing:support openbsd crypto test for nuttx
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-09-16 23:20:58 +08:00
anjiahao
ccd7d12bcb testing:crypto testing form openbsd
aesctr.c:
49a6e16f2c2c8e509184b1f777366d1a6f337e1c
aes_xts.c:
49a6e16f2c2c8e509184b1f777366d1a6f337e1c
des3.c:
49a6e16f2c2c8e509184b1f777366d1a6f337e1c
hmac.c
f51db96baec97348726b28106516038de1518dc5
https://github.com/openbsd/src
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-09-16 23:20:58 +08:00
田昕
799fe4e684 testing/mtd_config_fs:more test cases for garbage collection.
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-09-16 18:03:11 +08:00
田昕
3d53b7e0e0 testing/nvconfig:fix compiling err after removing MTD_CONFIG_ERASEDVALUE
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-09-14 20:16:17 +08:00
ligd
048b79955e ostest: fix sighand_test report error
sighand_test: ERROR waiter task did not exit

reason:
sleep will be interrupt by signal

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-09-07 01:18:15 +08:00