Skip to content

Conversation

BernardXiong
Copy link
Collaborator

围绕着PSE51相关函数,添加测试用例框架及测试用例。

目前已经在pc (ubuntu 20.04.1)上测试通过(cd testcases; ./build pc ; ./test pc)。

  • ./build pc
Building PC tests...
✓ PC tests built successfully
  • ./test pc
=== Running PC Tests ===

── Testing assert ──
  ✓ assert test passed

── Testing ctype ──
  ✓ ctype test passed

── Testing fcntl ──
  ✓ fcntl test passed

── Testing locale ──
  ✓ locale test passed

── Testing signal ──
  ✓ signal test passed

── Testing stat ──
  ✓ stat test passed

── Testing stdio ──

── Testing stdlib ──
  ✓ test_environment_utils
  ✓ test_integer_math
  ✓ test_memory
  ✓ test_program_control
  ✓ test_random
  ✓ test_string_conversion

── Testing string ──
  ✓ test_memory_ops
  ✓ test_string_compare
  ✓ test_string_concat
  ✓ test_string_copy
  ✓ test_string_misc
  ✓ test_string_search

── Testing time ──
  ✓ time test passed

── Testing unistd ──
  ✓ unistd test passed

── Testing utsname ──
  ✓ utsname test passed

=== PC Test Summary ===
Total: 12, Passed: 12, Failed: 0
✓ All PC tests passed!

…bedded support

- Consolidated Makefile structure for both PC and embedded builds in unistd and utsname test suites.
- Removed redundant embedded Makefiles and scripts, integrating their functionality into the main Makefile.
- Updated test source files to separate test execution logic from main function, allowing for better modularity.
- Deleted obsolete UART driver and linker scripts specific to embedded builds.
- Enhanced output messages during build and test execution for clarity.
- Cleaned up embedded test files, ensuring only necessary components remain for streamlined testing.
@BernardXiong BernardXiong requested a review from Copilot August 9, 2025 02:43
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@unicornx unicornx self-requested a review August 11, 2025 02:41
@unicornx
Copy link
Collaborator

@Chris-godz please review and comment, thanks. 另外请看一下是否可以将以前你曾经做过的 #52 的工作合并到这个 pr 里面来一起?

Chris-godz and others added 2 commits August 13, 2025 15:40
- Add default ARM toolchain fallback in Makefile
- Unify embedded test execution with './test' script
- Fix documentation commands
Signed-off-by: Jiajie Zhou [email protected]
fix: testcases and build system
@BernardXiong
Copy link
Collaborator Author

Please provide your comments, thanks.

@BernardXiong BernardXiong merged commit 6fb59b7 into main Sep 6, 2025
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.

3 participants