hujun5
79a111fc1a
ostest/mutex: mut need to be destroyed
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-08-09 15:07:25 +08:00
yinshengkai
d0f790e166
testing: add os performance measurement
...
Measure the performance of core system functions
such as thread switching and the time required for semaphore execution
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-08-09 14:59:41 +08:00
Petro Karashchenko
3648c0cc5c
testing/ostest: call up_idle() only in case of CONFIG_SIM_WALLTIME_SLEEP=y
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
Petro Karashchenko
6acf345296
testing/ostest: add test case for task priority change with locked scheduler
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
Petro Karashchenko
e30a0602a0
testing/ostest: add missing section comments
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-07 18:58:46 -07:00
makejian
ff6df40e3c
fix -Wmaybe-uninitialized compile warning in nist-sts
...
fix compile warning as following:
nist-sts/sts/src/cusum.c:15:23: warning: 'zerv' may be used uninitialized in this function[-Werror=maybe-uninitialized]
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 22:43:59 -07:00
yanghuatao
89a1255dc2
ltp: follow linux on pthread_rwlock_unlock
...
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2023-08-03 22:43:50 -07:00
yanghuatao
1309990d6c
ltp/makefile: nuttx on github download ltp code failed fix
...
Fix github download ltp code error:
Cloning into 'ltp'...
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@33ba2a4a6fc5.(none)')
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-08-03 10:54:44 -07:00
makejian
e109319a2e
fix memory leak in aesctr test case
...
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 10:54:25 -07:00
guoshichao
bc3fada2ce
apps/testing/ltp: conditional build the testcases based on defconfig
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-08-03 07:30:28 -07:00
guoshichao
bc8d77fdbd
apps/testing/ltp: filter the testcases based on config
...
control the testcases build rules based on the config that current
enabled
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-08-03 07:30:28 -07:00
makejian
4b0a3d92ff
Porting NIST-Statistical-Test-Suite in nuttx to test quality of rng
...
(1)add nist-sts init nuttx
(2)Fix possible memory bug
(3)Fix double free memory
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-01 10:06:45 -07:00
guanyi
f50d2cdbe3
fix ostest sigprocmask testcase
...
problem: ostest may fail at procmask test, because signals:sigkill/sigstop should not be added in signal mask
solution: skip checking whether sigkill/sigstop are in signal mask
Signed-off-by: guanyi <guanyi@xiaomi.com>
2023-08-01 21:02:52 +09:00
hujun5
13d3b3d26c
ostest/rmutex: mutex need to be destroyed
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 08:33:26 -07:00
hujun5
7daeca62b0
testing/mm: add maxsize parameter
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 08:33:09 -07:00
Xiang Xiao
d46dce5819
testing/ostest: Remove the unnecessary defined(CONFIG_PTHREAD_CLEANUP_STACKSIZE)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-25 09:51:09 +08:00
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
Xiang Xiao
ff276e422f
ostest: Skip test_dev_null when CONFIG_DEV_NULL isn't enabled
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-17 16:28:02 +09:00
chao an
b18cf9aab3
testing/ostest: fix Compiler Warning (level 1) C4716: 'function' must return a value
...
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4716?view=msvc-170
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-14 01:28:25 +08:00
chao an
7cfcb49213
cmake/apps: add more applications into cmake support
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-13 19:00:18 +02:00
chao an
4d79a5cbaf
add initial cmake build system
...
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:52:02 +08:00
pengyiqiang
cb9cba8d3f
testing/monkey: add file permission settings
...
Add missing file permission setting, fix file read failure.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-06-29 20:08:05 +08:00
Gregory Nutt
6d9259f334
Add small test of pthread_exit()/pthread_self() on main thread.
2023-06-29 13:53:02 +08:00
simbit18
83bddd86c5
Fix Kconfig style
...
Remove TABs from Kconfig files
Add comments
2023-06-21 00:36:52 +08:00
Xiang Xiao
e89409cfe6
Remove the unnecessary cast from pid_t to int
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-19 09:05:54 +02:00
yanghuatao
cb179e4ed2
testing/ostest: adjust PTHREAD_CLEANUP_STACKSIZE with nuttx project
...
in project nuttx "remove PTHREAD_CLEANUP, and use PTHREAD_CLEANUP_STACKSIZE to enable or disable interfaces pthread_cleanup_push() and pthread_cleanup_pop()", project apps also needes adjust code.
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-06-14 08:49:13 +02: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
Lucas Saavedra Vaz
9cc710e954
testing/nxdiag: Move to "system" and improve info generated
...
Move the application to the "System" category. Improve host OS info by using platform.uname() and get current config file using CONFIG_BASE_DEFCONFIG
2023-05-27 13:48:32 +08:00
Lucas Saavedra Vaz
eb36c15171
testing: Add application to gather debug information (nxdiag)
...
This commit aims to add an application to gather debug information about the host and target systems. It can also perform some diagnostic checks on the host and target systems.
This will facilitate the process of users seeking assistance for solving some problem.
Current capabilities:
- Get host OS version;
- Get host python modules;
- Get host system packages;
- Get host PATH;
- Get host compilation flags for the target;
- Get target NuttX configuration;
- Get target OS version, hostname, build and architecture;
- Capable of adding custom, vendor specific, information. Currently gathering only Espressif related info:
- Get the bootloader version of detected image files;
- Get the version of different toolchains used by Espressif chips;
- Get Esptool version.
2023-05-25 11:04:39 -03:00
hujun5
97a38b2b1f
ostest/cond_test: cond and mutex need to be destroyed
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-23 13:11:07 +08:00
Xiang Xiao
7032c72f2f
Indent the define statement by two spaces
...
follow the code style convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-21 07:39:53 +03:00
hujun5
db767b6f45
ostest/sighand_test: sem need to be destroyed
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-20 12:42:35 +08:00
simbit18
d0cb5afc2f
testing/cmocka/Kconfig: Fix indentation
...
Remove spaces from Kconfig
2023-05-19 01:00:38 +08:00
hujun5
aea9b50dc8
add fdsan unit test
...
Due to the current Nuttx not supporting death test, we removed death test from the original test cases of Android
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-16 22:42:23 -07:00
hujun5
70a4010635
ostest: sem need to be destroyed
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-16 11:59:08 +08:00
hujun5
dd20ae28cb
ostest: rwlock need to be destroy
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-12 15:32:18 -03: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
7c37421266
Replace all sprintf with snprintf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
Xiang Xiao
134b8b538f
Replace all strcat with strlcat
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
hujun5
02efb15b57
ostest:fix signal test fail
...
If the same signal is quickly repeated multiple times, the signal may be ignored.
In SMP since we cannot control thread scheduling to ensure timely signal processing,
it is best to use semaphores to wait for signal processing to complete, which can also shorten the ostest time
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-05-06 23:37:07 +03:00
simbit18
bfd4cbc743
apps/testing/ostest/roundrobin.c: Fix nxstyle errors
...
error: Long line found
2023-04-29 14:54:40 +08:00
hujun5
5b2a89e174
ostest: fix smp ostest fail
...
In SMP we need improve thread waiting strategy
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-04-24 09:55:54 +02:00
hujun5
f0f98c3d73
ostest: fix smp ostest fail
...
In SMP we need improve thread waiting strategy
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-04-24 09:55:54 +02:00
Petro Karashchenko
4159fa197b
testing/ostest: make sure that pthread_rwlock timeout test is executed properly
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-04-17 15:54:32 +02:00
Petro Karashchenko
2655f80dd7
testing/ostest: fix tasks priority assignment in nested signal test
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-04-17 15:54:32 +02: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
Xiang Xiao
417b87a0a0
testing/ostest: Remove the unreal used SIG_WAITCANCEL
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-05 03:38:24 -07:00
Xiang Xiao
3ac86cc6f1
testing/ostest: Define the private used signal to SIGRTMIN
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-05 03:38:24 -07:00
Fotis Panagiotopoulos
b93aa0cb8d
ostest: Fixed use of uninitialized variable.
2023-04-05 03:57:00 +03:00
Gustavo Henrique Nihei
efb4e0bc91
Add another batch of missing headers throughout the repository
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-28 14:54:16 -03:00
Gregory Nutt
a1bca5070c
Changes to apps needed by nutts PR 8885
...
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
2023-03-27 16:58:52 +03:00
simbit18
e533df52cc
apps/testing/smart_test/Makefile: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-24 15:04:43 -03:00
Zhe Weng
412505d286
ostest: Introduce basic work queue test
...
The test consists of two parts:
- A tester that tries to trigger wrong states of work queue
- A verifier that checks whether the wqueue is still working properly
The tester is trying to queue and cancel work several times with
priority lower/same/higher than the work queue.
Most wrong cases are likely to happen with high priority like:
- If `cancel` never decreases semcount, the count may keep growing
and finally overflow
- If `cancel` is decreasing semcount too much, the `work_thread` may
be waken up less times than expected
The lower/same priority testers are just added for covering other
unexpected situations.
The verifier is trying to queue some works and check they are called as
expected:
- Frist queue a 'sleep' worker, to let a work queue thread be in busy
status and not waiting on sem, while other work queue thread(s) (if
any) still waiting for sem. If sem is in wrong state, it may cause
wrong behavior in either thread waiting/not waiting on the sem.
- Then queue a few count works, if the work queue(s) are still working
properly, these works should finally be all called once.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-22 12:56:01 +02:00
simbit18
04c31b820c
apps/testing/crypto/Makefile: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-21 20:37:38 -03:00
simbit18
ab675c5b7d
apps/testing/crypto/Make.defs: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-21 20:37:38 -03:00
XinStellaris
7ab1f2a957
Add Arch-specific libc test case.
...
Signed-off-by: XinStellaris <tianxin7@xiaomi.com>
2023-03-17 11:59:13 -03:00
zhangyuan21
4454c8d02f
apps: remove unnecessary sem_setprotocol code
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-17 11:58:03 -03:00
zhangyuan21
922f9932a6
apps: add <assert.h> header file
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-16 12:00:28 +01:00
simbit18
e8dcb60d71
apps/testing/ltp/Makefile: Fix mistakes in comments
...
Fix mistakes in comments
2023-03-09 01:43:09 +08:00
simbit18
75b2519827
apps/testing/unity/Make.defs: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-09 01:43:09 +08:00
simbit18
5cee3eebd9
uclibcxx_test/Make.defs Fix mistakes in comments
...
apps/testing/uclibcxx_test/Make.defs: Fix mistakes in comments
2023-03-09 01:43:09 +08:00
simbit18
77cc8c96b1
apps/testing/mtd_config_fs/Makefile: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-09 01:43:09 +08:00
simbit18
e8bf439105
apps/testing/cxxtest/Makefile: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-09 01:43:09 +08:00
simbit18
6d7ed39a0d
apps/testing/cxxtest/Make.defs: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-09 01:43:09 +08:00
Gustavo Henrique Nihei
f500c64962
Include missing headers throughout the repository
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-07 09:58:13 +08:00
Xiang Xiao
21bc466a2b
Remove the tail space char from all files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 00:18:36 +02: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
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +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
yintao
49f88d50b2
testing/cmocka: update cmocka version and add patch
...
Specify cmocka as the latest version 1.15
add patch to enable cmocka to output with syslog
Signed-off-by: yintao <yintao@xiaomi.com>
2023-02-17 23:44:30 +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
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
田昕
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