Skip to content

tests: enable gateway and tools suites on Zynq-A9#77

Merged
zevorn merged 1 commit intomainfrom
tests/zynq-full-suite
Mar 18, 2026
Merged

tests: enable gateway and tools suites on Zynq-A9#77
zevorn merged 1 commit intomainfrom
tests/zynq-full-suite

Conversation

@zevorn
Copy link
Copy Markdown
Owner

@zevorn zevorn commented Mar 18, 2026

Summary

Enable the full unit test suite on Zynq-A9 QEMU by running tests inside a FreeRTOS task with tick interrupts.

Previously only ai_memory and im_util ran (22/25 tests) because the scheduler wasn't started. Now that GIC IRQ dispatch, VFP, and alignment issues are all fixed, the scheduler works correctly and OSAL primitives (mutex, queue) are available.

Changes

platform/zynq-a9/test_main.c:

  • Run tests in a FreeRTOS task instead of bare main()
  • Add full tick interrupt setup (SCU Timer + GIC), same as main.c
  • Add proper FreeRTOS hooks with ZYNQ_TEST_EXIT markers
  • Add FreeRTOS+TCP stubs for test build
  • Enable gateway and tools test suites

Test Results (36/39)

Suite Result Notes
ai_memory 8/11 3 LTM failures expected (KV stub returns ERROR)
im_util 14/14 All pass
gateway 7/7 NEW — service registration, overflow, handler pipeline
tools 7/7 NEW — register, find, index, JSON serialize, overflow
OTA skipped Not enabled in build

Test plan

  • make test-unit-zynq — 36/39 pass, ZYNQ_TEST_EXIT:FAIL (3 expected LTM)
  • make build-zynq-a9-qemu — firmware builds clean
  • make test-smoke-zynq — boot test passes

…uler

Previously test_main.c ran without the FreeRTOS scheduler, limiting
tests to suites that don't need OSAL primitives (ai_memory, im_util).

Now that the tick interrupt, GIC dispatch, and VFP are all fixed,
run the full test suite inside a FreeRTOS task with proper tick
configuration (SCU Timer + GIC).

New test results (36/39 pass):
  ai_memory:  8/11 (3 LTM failures expected — KV stub)
  im_util:   14/14
  gateway:    7/7   ← NEW
  tools:      7/7   ← NEW
  OTA:       skipped (not enabled)

Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
@zevorn zevorn merged commit 1a19a08 into main Mar 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant