What
Restructure the toolchain test suite by moving tests from examples/ to a dedicated tests/ directory with clear organization and comprehensive documentation. The refactoring includes:
- Establish
tests/ as the primary location for all toolchain validation tests
- Organize tests into
feature_verification/ (8 tests) and language_and_standards/ (5 tests)
- Create centralized test documentation in
docs/test_suite.md
- Implement platform-aware cross-compilation configuration for improved toolchain compatibility
- Update all CI/CD workflows to reference new test paths
Acceptance Criteria (DoD)
How
-
Test Reorganization
- Create
tests/ directory structure with feature_verification/ and language_and_standards/ subdirectories
- Move all test source files and build configurations from
examples/ to appropriate tests/ subdirectories
- Create comprehensive BUILD files with proper test organization and test_suite grouping
-
Documentation Consolidation
- Create
docs/test_suite.md with complete test documentation (395+ lines)
- Update individual test README files to contain quick references and links to centralized docs
- Update root README.md to list test documentation as primary resource
- Update examples/README.md to indicate tests have moved
-
Cross-Compilation Support
- Implement platform-aware linkstatic configuration using Bazel
select() statements
- Condition linkstatic behavior on
@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa
- Apply to all
cc_library targets: feature_test_lib, pic_test_lib, multifile_lib, whole_archive_lib, pthread_test_lib
-
CI/CD Updates
- Update
.github/workflows/aarch64-ebclfsa.yml to build test targets from tests/ directory
- Update
.github/workflows/aarch64-linux.yml for new test paths
- Update
.github/workflows/autosd.yml for new test paths
- Update
.github/workflows/x86_64-linux.yml for new test paths
What
Restructure the toolchain test suite by moving tests from
examples/to a dedicatedtests/directory with clear organization and comprehensive documentation. The refactoring includes:tests/as the primary location for all toolchain validation testsfeature_verification/(8 tests) andlanguage_and_standards/(5 tests)docs/test_suite.mdAcceptance Criteria (DoD)
docs/test_suite.mdwith 395+ lines covering:select()statementslinkstatic = Trueonly for aarch64-linux-sdk_0.1.0-ebclfsalinkstatic = False(default) for other platformsHow
Test Reorganization
tests/directory structure withfeature_verification/andlanguage_and_standards/subdirectoriesexamples/to appropriatetests/subdirectoriesDocumentation Consolidation
docs/test_suite.mdwith complete test documentation (395+ lines)Cross-Compilation Support
select()statements@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsacc_librarytargets: feature_test_lib, pic_test_lib, multifile_lib, whole_archive_lib, pthread_test_libCI/CD Updates
.github/workflows/aarch64-ebclfsa.ymlto build test targets fromtests/directory.github/workflows/aarch64-linux.ymlfor new test paths.github/workflows/autosd.ymlfor new test paths.github/workflows/x86_64-linux.ymlfor new test paths