Commit Graph

490 Commits

Author SHA1 Message Date
CYFS 38c5ff0e56 utest: move ci configs to github directory
Signed-off-by: CYFS <2805686936@qq.com>
2026-06-12 14:22:53 +08:00
CYFS bb4aace00f utest: move utestcases Kconfig to utest component
Signed-off-by: CYFS <2805686936@qq.com>
2026-06-12 14:22:53 +08:00
CYFS 103d4c1d92 utest: move lwp testcases to components/lwp
Signed-off-by: CYFS <2805686936@qq.com>
2026-06-12 14:22:53 +08:00
CYFS 23187dedaa utest: move tmpfs testcases to components/dfs
Signed-off-by: CYFS <2805686936@qq.com>
2026-06-12 14:22:53 +08:00
CYFS f559dceeb5 utest: move mm testcases to components/mm
Signed-off-by: CYFS <2805686936@qq.com>
2026-06-12 14:22:53 +08:00
CYFS ae5b5ed182 [action][utest]:Expand kernel auto-run matrix and sync test configs 2026-04-19 20:37:38 +08:00
AFWEF_147 c167bbbc7e fix(tmpfs): harden path component bounds and validation 2026-04-01 10:09:07 +08:00
cl2t c5c4281fcf [utest] Add standardized documentation blocks for mm and lwp test cases
Add functional description comment blocks to 5 test case files that
were missing them, following the format specified in issue #10895:
- mm/mm_memblock_tc.c: memory block management tests
- mm/rt_ioremap.c: I/O remap tests
- lwp/condvar_broadcast_tc.c: condition variable broadcast tests
- lwp/condvar_signal_tc.c: condition variable signal tests
- lwp/condvar_timedwait_tc.c: condition variable timed wait tests

Closes #10895 (partial)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 21:08:24 +08:00
Bernard Xiong 743b614875
[components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
Chuan b80e02765b [utest][mm_api]:Add standardized documentation for MM API lwp Test 2025-12-16 11:40:55 +08:00
GuEe-GUI 5abecc1fd0 [dm][graphic] support dm mode
1. Add backlight framework for graphic.
2. Add framebuffer and plane, power, EDID for graphic framework
3. Add boot logo render for graphic
4. Update lcd.h

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-15 16:54:23 +08:00
Chuan 3c459aecea [utest][mm_api]Add standardized documentation for MM API Test 2025-12-15 12:00:46 +08:00
Rbb666 35816c14b7 [action]Add automatic testing for SMP. 2025-12-04 15:53:07 +08:00
GUI e5e0ad29bf
[DM/DMA] Update DMA #10987
* Append WT attribute.
* Change the API with pool size only.
* Add address mask for DMA
* Change DMA lock to mutex
* Add pause callback for DMA engine driver
* Add DMA Engine test
* Add ARM PL330 DMA Engine driver
2025-12-03 21:47:49 +08:00
Yuqiang Wang c8f0a26a5f
feat:[sal][utest] added test cases for the sal api (#10720)
* feat:[sal][utest] added test cases for the sal api

* improve[net][utestcase]: standardize script construction

* ci[auto utest run]: standardize naming and add sal testcases

* add sal utest auto run configure and standard Information
2025-10-23 09:56:30 +08:00
Chen Wang 68a27e1fbe utest: UTEST_MEMPOOL_TC -> RT_UTEST_MEMPOOL
Which is missed in PR #10808 "utest: unify configname", add it.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-16 18:34:43 +08:00
Chen Wang e8d3d0fca4 utest: move cpp from examples to components/libc/cplusplus
Also update the case names to compatible with naming rules.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 15:28:58 +08:00
Chen Wang 1dbcde518a utest: UTEST_SCHEDULER_TC -> RT_UTEST_SCHEDULER
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 5b8bfe4a77 utest: UTEST_MTSAFE_KPRINT_TC -> RT_UTEST_MTSAFE_KPRINT
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 405d096ff3 utest: UTEST_HOOKLIST_TC -> RT_UTEST_HOOKLIST
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang aac9eb8fbd utest: UTEST_ATOMIC_TC -> RT_UTEST_ATOMIC
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang ff9f1770c7 utest: UTEST_THREAD_TC -> RT_UTEST_THREAD
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 454a0c3a27 utest: UTEST_MAILBOX_TC -> RT_UTEST_MAILBOX
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 78c2acbdae utest: UTEST_MUTEX_TC -> RT_UTEST_MUTEX
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 68edf1792f utest: UTEST_SIGNAL_TC -> RT_UTEST_SIGNAL
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 7f17a580ab utest: UTEST_MESSAGEQUEUE_TC -> RT_UTEST_MESSAGEQUEUE
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 468007dda7 utest: UTEST_EVENT_TC -> RT_UTEST_EVENT
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang f0b6ad057d utest: UTEST_SEMAPHORE_TC -> RT_UTEST_SEMAPHORE
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang d5ffca9e90 utest: UTEST_IRQ_TC -> RT_UTEST_IRQ
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 0eda9bb5f1 utest: UTEST_OBJECT_TC -> RT_UTEST_OBJECT
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 0b8d2b3594 utest: UTEST_SMALL_MEM_TC -> RT_UTEST_SMALL_MEM
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang c2e1d7dee1 utest: UTEST_MEMHEAP_TC -> RT_UTEST_MEMHEAP
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 182a07ef58 utest: UTEST_TMPFS_CP -> RT_UTEST_TMPFS_CP
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang e536c49a87 utest: UTEST_MM_LWP_TC -> RT_UTEST_MM_LWP
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 9ca37156f5 utest: UTEST_MM_API_TC -> RT_UTEST_MM_API
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 0ad2ac115e utest: UTEST_CPP11_THREAD_TC -> RT_UTEST_CPP11_THREAD
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang df4fdc0087 utest: UTEST_SELF_PASS_TC -> RT_UTEST_SELF_PASS
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Rbb666 703930f7c2 [utest]Remove all posix test cases from utest. 2025-10-14 15:59:22 +08:00
Chen Wang 04e427921e utest: fixed UTEST_DEVICE_TC
In 01e015450f, "utest: move driver-related case under to drivers,"
UTEST_DEVICE_TC was replaced with RT_UTEST_DRIVERS_CORE. However,
some files are forgot to do this replacement, so this patch address
this.

Note: In .config, lines like "# CONFIG_XXX is not set" do not need
to be modified; they are comments. Furthermore, for BSPs, running
"scons --menuconfig" and save the config will automatically replace
them. Therefore, no modification is necessary in this case.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-14 09:15:15 +08:00
Chen Wang d14daa6cb1 utest: ipc: move from examples to components/drivers/ipc
Also:
- Add "RT_" prefix for utest config options.
- Rename the case names to following the naming rule.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-13 10:44:16 +08:00
Chen Wang 7499790140 utest: core: move perf testcase from example to src
Also:

- Add "RT_" prefix for the UTEST config options.
- Follow the naming rules to update the case name.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 18:24:40 +08:00
Chen Wang 66448d9e96 utest: smp_call: move from example to components/drivers/smp_call
Also,
- Rename UTEST_SMP_CALL_FUNC to RT_UTEST_SMP_CALL_FUNC.
- Add depends on RT_USING_SMP in Kconfig for RT_UTEST_SMP_CALL_FUNC
- Follow the naming rules of utest case to update the cases' name.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 16:20:38 +08:00
Chen Wang 3b97667323 utest: serial: move from examples to components/drivers/serial
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 15:38:45 +08:00
Chen Wang ba795c6d65 utest: serial_v2: add depends on RT_USING_SERIAL_V2
Add dependent of RT_USING_SERIAL_V2 in Kconfig to
make sure utest for serial_v2 is only available
when RT_USING_SERIAL_V2 is enabled.

Otherwise menuconfig allow people enable UTEST_SERIAL_TC
but building of utestcases failed. It looks weird and
better to be fixed.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-10 20:24:18 +08:00
Chen Wang cc8b0d9f39 utest: serial: bypass: add depends on RT_USING_SERIAL_BYPASS
Add dependent of RT_USING_SERIAL_BYPASS in Kconfig to
make sure utest for serial-bypass is only available
when RT_USING_SERIAL_BYPASS is enabled.

Otherwise building of utestcases failed when UTEST_SERIAL_BYPASS
is enabled.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-10 20:23:40 +08:00
Yuqiang Wang 36393c61be
improve[ci]: integrate utest run ci (#10748) 2025-09-28 16:08:51 +08:00
Chen Wang 6e51a8405f utest: move core tesetcases under to directiry "src"
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-26 09:59:05 +08:00
Chen Wang 495c8cfc25 utest: remove RT_UTEST_USING_ALL_CASES
Many modules' utests currently don't support enabling all
tests at once. Furthermore, some modules' tests are complex,
for example due to their numerous dependencies on other
modules. This makes it nearly impossible to enable all
tests with a single global switch. Consequently, the
previously defined `RT_UTEST_USING_ALL_CASES` has lost
its original meaning.

We recommend deprecating this configuration switch. If a
module needs to enable a group of functional tests through
its own configuration, this local enable all switch should
be implemented by the module itself, and a global RTT enable
switch will no longer be provided.

If such a requirement arises in the future, we recommend
careful design, especially considering how to ensure that
turning on a single switch enables all dependencies for
all involved modules for ease of use.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-26 09:57:54 +08:00
Yonggang Luo 19451d9bb7 RT_TIMER_CTRL_SET_TIME and RT_TIMER_CTRL_GET_TIME should both use rt_tick_t 2025-09-24 18:12:36 +08:00
Rbb666 db1779e239 [utest][cpp]add cpp-smartptr testcase. 2025-09-23 10:55:47 +08:00