Skip to content

Update target test framework - #72

Open
chinglee-iot wants to merge 7 commits into
mainfrom
update-target-test-framework
Open

Update target test framework#72
chinglee-iot wants to merge 7 commits into
mainfrom
update-target-test-framework

Conversation

@chinglee-iot

Copy link
Copy Markdown
Owner

Update target test framework

Description

  • Define test macros to abstract the test framework. Different platform can make use of these macros to adapt to their platform.

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rawalexe and others added 6 commits July 8, 2026 17:17
Python warns about invalid escape sequences in the CBMC Makefile generation helpers. Use raw regex strings and escape the Windows path example so the parsed AST stays unchanged while removing the warnings.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
Co-authored-by: Old-Ding <ai.neo.ae86@gmail.com>
Store the parsed IPv4 echo server address in the IPv4 union member instead of writing it into the IPv6 byte array.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
Unit tests need to update now that the queue
asserts if in use during a deletion call.
Updated existing mutex test which left a queue
with a user during cleanup.
This was last updated to point to a PR reference.
This submodule needs to be updated to point to the
comitted commit.
@chinglee-iot
chinglee-iot force-pushed the update-target-test-framework branch from 566862c to 6b78272 Compare July 27, 2026 04:06
Introduce test_default_setting_config.h with testSETUP_FUNCTION_PROTOTYPE,
testTEARDOWN_FUNCTION_PROTOTYPE, testENTRY_FUNCTION_PROTOTYPE,
testBEGIN_FUNCTION, testRUN_TEST_CASE_FUNCTION, and testEND_FUNCTION
macros so test files no longer call Unity APIs directly. Targets that
need a different test framework can override these macros via their
own test_setting_config.h by setting configTARGET_TEST_USE_CUSTOM_SETTING.

Update the existing SMP tests and the test template to use the new
macros, and move README.md from tests/smp/template to the Target root,
documenting the test framework and updating paths accordingly.
@chinglee-iot
chinglee-iot force-pushed the update-target-test-framework branch from 6b78272 to b38b829 Compare July 27, 2026 04:20
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.

6 participants