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
Jiuzhu Dong
494b47c692
fix compile warning
...
scanftest_main.c:1121:34: warning: ‘%s’ directive writing up to 2 bytes into a region of size between 1 and 80 [-Wformat-overflow=]
canftest_main.c: In function 'scanftest_main':
scanftest_main.c:1399:42: warning: format '%n' expects argument of type 'int *', but argument 3 has type 'unsigned int' [-Wformat=]
1399 | printf("Test #%u assigned %nou instead of %lli.\n",
| ~^
| |
| int *
| %d
1400 | t + 1, nou, type_data[t].value.u);
| ~~~
| |
| unsigned int
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Gustavo Henrique Nihei
732df52aef
testing: Fix cxxtest application for "no-rtti" builds
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-03-26 06:31:51 +02:00
Petro Karashchenko
566be8c7b1
definitions: unify MAX and MIN macro definitions
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-16 23:20:17 +08:00
fanzhuyun
2dde296d4f
testing/fstest: add cleanup to fatutf8
...
Signed-off-by: fanzhuyun <fanzhuyun@xiaomi.com>
2022-03-15 18:38:52 +08:00
caofuqi1
4756f33d70
apps: testing: uclibcxx_test: add uclibcxx_test Kconfig
...
Signed-off-by: caofuqi1 <caofuqi1@xiaomi.com>
2022-03-15 01:36:02 +08:00
Alin Jerpelea
e0499fea49
apps: testing: ostest: nxstyle fixes
...
fixes for errors reported by nxstyle
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
f57c59ff54
apps: testing: ostest: update licenses to Apache
...
Gregory Nutt has submitted the SGA
Haltian Ltd has submitted the SGA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Huang Qi
cc156b908e
ostest: Introduce basic setjmp/longjmp test
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-03-01 12:03:31 +08:00
liucheng5
93dbf8abe2
fix: sensor: modify sensortest for PPG
...
Modify sensortest for new sensor types PPGD and PPGQ instead old type PPG.
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2022-01-28 14:08:16 +08:00
chao.an
cb988a8394
testing/ostest: set the default value to TESTING_OSTEST_FPUSIZE
...
.config:2053:warning: symbol value '' invalid for TESTING_OSTEST_FPUSIZE
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-09 18:07:52 +08:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Zeng Zhaoxiu
614b73d321
ostest: sighand.c: add sem_wait in signal handler
...
task is blocked by semphore1, signal handler is blocked by semphore2,
after post semphore2, the task must get -EINTR.
Signed-off-by: Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
2022-01-05 21:34:30 +09:00
Jiuzhu Dong
4a14126d76
ostest: fix assert when enable CONFIG_PRIORITY_INHERITANCE
...
[ 96.555456] [265] ap: up_assert: Assertion failed at file:semaphore/sem_holder.c line: 112 task: pt-0x5b09fd0b
[ 96.555657] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.555828] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.556023] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.556222] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.556437] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.556639] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.556842] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
[ 96.557036] [265] ap: up_assert: Assertion failed at file:semaphore/sem_recover.c line: 86 task: pt-0x5b09fd0b
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-01-05 20:20:45 +08:00
Petro Karashchenko
5ac15130db
apps: remove space befone newline in logs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
Xiang Xiao
87d8494a6e
testing/ostest: Include nuttx/arch.h explicitly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-08 16:32:47 +08:00
Xiang Xiao
14a52b1933
testing/ostest: Don't include arch/tls.h
...
since it doesn't exist any more
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-05 23:06:02 -03:00
Juha Niskanen
0c21a89a3f
testing/ostest: remove spurious redefinitions of NULL
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-11-29 11:14:42 -06:00
Xiang Xiao
c9f736005a
testing/fstest: Zero g_nfailed too in fstest_delallfiles
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
f8ebeb8fd8
testing/fstest: Print the delta of memory info
...
to catch the memmory leak quickly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
121a6e58ff
testing/fstest: Remove g_media_full since it isn't really used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
7c4ddaeede
testing/fstest: Don't reuse the deleted name
...
to simplify the root cause analysis
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
1187351144
testing/fstest: Compare the file name directly
...
and remove crc of file name
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
3b64ad34c3
testing/fstest: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
75c11d4480
examples/helloxx: add extern "C" to main implementation directly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:23:05 -03:00
Xiang Xiao
fd2289a8a2
testing/sensortest: Fix printf format warning
...
sensortest.c: In function 'print_valu':
Error: sensortest.c:161:10: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
161 | printf("%s: timestamp:%" PRIu64 " value:%u\n",
| ^~~~~~~~~~~~~~~~~
162 | name, event->timestamp, event->ppg);
| ~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:161:44: note: format string is defined here
161 | printf("%s: timestamp:%" PRIu64 " value:%u\n",
| ~^
| |
| unsigned int
| %lu
sensortest.c: In function 'print_gps':
Error: sensortest.c:169:10: error: format '%u' expects argument of type 'unsigned int', but argument 15 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
169 | printf("%s: timestamp:%" PRIu64 " time_utc: %" PRIu64 " latitude: %f "
| ^~~~~~~~~~~~~~~~~
......
175 | event->ground_speed, event->course, event->satellites_used);
| ~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:172:13: note: format string is defined here
172 | " %u\n", name, event->timestamp, event->time_utc, event->latitude,
| ~^
| |
| unsigned int
| %lu
sensortest.c: In function 'print_gps_satellite':
Error: sensortest.c:183:10: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ^~~~~~~~~~~~~~~~~~
184 | event->timestamp, event->count, event->satellites);
| ~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:183:46: note: format string is defined here
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ~^
| |
| unsigned int
| %lu
Error: sensortest.c:183:10: error: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ^~~~~~~~~~~~~~~~~~
184 | event->timestamp, event->count, event->satellites);
| ~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
sensortest.c:183:61: note: format string is defined here
183 | printf("%s: timestamp: %" PRIu64 " count: %u satellites: %u", name,
| ~^
| |
| unsigned int
| %lu
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-19 00:14:59 +08:00