Commit Graph

227 Commits

Author SHA1 Message Date
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
田昕
c427f408cb testing:add MTD Fail-safe config-data tests
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-08-31 20:33:20 +08:00
Huang Qi
2e2630e838 Don't download tarballs if a local git repo found
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +08:00
Masayuki Ishikawa
1bf462e1c1 testing: getprime: Fix the thread number info
Summary:
- I noticed that getprime sometimes shows a wrong thread number
- This commit fixes this issue

Impact:
- None

Testing:
- Tested with sabre-6quad:netnsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-25 19:42:25 +08:00
pengyiqiang
a9f6d66888 add fds initialization and buttonset comparison 2022-08-17 11:41:13 +08:00
pengyiqiang
d3232585b0 fixed non-standard naming and usage 2022-08-17 11:41:13 +08:00
pengyiqiang
2af0fb3815 fix warning 2022-08-17 11:41:13 +08:00
pengyiqiang
2ed3a91426 testing: add monkey test 2022-08-17 11:41:13 +08:00
liuhaitao
e1a382d62a testing/uclibcxx_test: Define TESTDIR correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-16 19:00:01 +03:00
Xiang Xiao
79e4c66764 testing/sensortest: Keep g_sensor_info in order
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-15 10:49:34 +03:00
Xiang Xiao
3021b8d11e testing/sensortest: Add FAR for pointer type
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-15 10:49:34 +03:00
xiatian6
491f549d1c fix: sensor: add sensor type of cap
Increase the type of cap sensor, including
raw data and detection status.

Signed-off-by: xiatian6 <xiatian6@xiaomi.com>
2022-08-15 10:49:34 +03:00
Xiang Xiao
b515a00fea zmodem: Move crc16.h and crc32.h from host to host/nuttx
to avoid the conflict with the 3rd party library

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-13 13:28:30 +03:00
Jiuzhu Dong
e04333c986 driver/sensor: rename /dev/sensor -> /dev/uorb
because this directory contains all topics by uorb using, not just sensors.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-08 23:11:37 +08:00
Lee Lup Yuen
8b43f9f9ca testing/sensortest: Update device path
Device paths are now named `/dev/sensor/sensor_...`: 3fdd036ba6/drivers/sensors/sensor.c (L49)
2022-08-08 13:31:18 +08:00
Jiuzhu Dong
eef03ad0a1 testing/sensortest: fix cmd argument mismatch(follow new sensor driver)
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-29 16:26:40 +03:00
Jiuzhu Dong
45f2c2a26d testing/sensortest: fix compile break
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 12:38:34 +08:00
Jiuzhu Dong
a06fa5ac27 testing/sensor_test: update sensortest according to enhance sensor driver
1.update prefix of sensor event structure to sensor_xxx.
2.remove activate cmd because of open will auto activate sensor.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 10:40:39 +08:00
Xiang Xiao
a549ea3888 Fix find: '/github/workspace/sources/nuttx/libs/libxx/uClibc++/tests': No such file or directory
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-25 10:47:21 +02:00
Fotis Panagiotopoulos
c4c3ffff90 ostest: Fixed prints in setenv test. 2022-07-20 11:57:01 +08:00
chenwen@espressif.com
068905d07b testing/irtest: Fix issue of failure to open multiple IR devices
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2022-06-14 14:56:18 +02:00
anjiahao
99629e9b5f fstest:support fstest can run many times
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-06-04 01:14:37 +08:00
Xiang Xiao
26367a66db testing/ostest: Replace up_tls_info with tls_get_info
follow the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-30 15:14:29 +03:00
David Sidrane
3821121a2e ostest:priority_inheritance Added priority restoration test 2022-05-21 18:27:55 +03:00
chao.an
e4dcdcd158 testing/ostest: remove CONFIG_TESTING_OSTEST_FPUSIZE
fptest should not need to care about the size of FPU

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-19 02:48:24 +08:00
Xiang Xiao
3760ab5fc8 Remove the unneeded void cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-17 23:31:35 +03:00
Jiuzhu Dong
5b0b44f24e iozone: support on nuttx
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-07 02:51:49 +08:00
YAMAMOTO Takashi
fe5b68142e testing/mm: Test more patterns for memalign 2022-04-07 02:51:39 +08:00
YAMAMOTO Takashi
f9a24e3c0a testing/mm: check alignment in do_memaligns 2022-04-07 02:51:39 +08:00
YAMAMOTO Takashi
cc5f73019e testing/mm: Update after the recent changes in nuttx
The following commit changed the typo of SIZEOF_MM_ALLOCNODE
from int to size_t.
```
commit 39eaeefb78f36724adbdc47400d6f60372b68344
Author: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Date:   Thu Jan 27 12:17:20 2022 +0800

    mm/mm_heap: remove the unnecessary check for memory node size

    Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>

```
2022-04-07 02:51:39 +08:00
wangbowen6
c7b7162d5f testing/mm: add memory boundary realloc test.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-04-02 18:11:58 +08:00
wangbowen6
963c1f31db testing/mm: repair the memory leak question when realloc failed.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-03-31 03:16:24 +08:00
Gustavo Henrique Nihei
c29deef4e5 testing: Extend cxxtest with some C++17 features
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-03-29 10:03:10 +08:00
Jiuzhu Dong
5fab48a2fe testing/scanftest: fix nxstyle
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00