feat: add patch maintenance docs and test-libc.sh CI JUnit XML#124
Merged
tervezo-ai[bot] merged 4 commits intomainfrom Mar 15, 2026
Conversation
Create scripts/test-libc.test.sh with 10 tests covering flag parsing, summary format, and JUnit XML output validation. Tests 1-6,9-10 pass now; test 7 (--ci XML generation) intentionally fails as the feature is not yet implemented (TDD red phase). Closes #37 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add per-test result tracking arrays (name, classname, status, time, output) populated during run_single_test(). New generate_junit_xml() function writes well-formed JUnit XML to test-results/libc-<timestamp>.xml when --ci flag is passed. All 10 TDD tests now pass. Closes #37 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create docs/FORK-MAINTENANCE.md covering upstream pin policy, patch series with dependency graph, rebase workflow, adding new patches, troubleshooting (header conflicts, symbol collisions, build system changes), and testing modes including --ci JUnit XML output. Closes #37 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The JUnit XML reports generated by test-libc.sh --ci are build artifacts that should not be committed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/test-libc.sh --ci: Added JUnit XML report generation (test-results/libc-<timestamp>.xml) with per-test tracking arrays,SECONDS-based timing, and XML-escaped failure outputscripts/test-libc.test.sh: New TDD test harness (10 tests) validating flag parsing, JUnit XML generation, summary format, and default behavior using mock toolchainsdocs/FORK-MAINTENANCE.md: Comprehensive fork maintenance guide covering upstream pin policy, patch series with dependency graph, rebase workflow, adding patches, troubleshooting (header conflicts, symbol collisions, build system changes), and testing modesCloses #37
Test plan
scripts/test-libc.test.sh— 10/10 tests pass--ciflag generates well-formed JUnit XML with<testsuites>,<testsuite>,<testcase>,<skipped>, and<failure>elements--help,--stock,--patched,--all) continue to work unchangeddocs/FORK-MAINTENANCE.mdcontains all 7 required sections🤖 Generated with Claude Code