stage2 test harness: declarative format #8828
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
It takes a long time to run
./zig build test-stage2
because it builds the full compiler. This issue is to introduce into the test harness, ability to load test cases from a declarative file format such as JSON, which references source files on disk. For example, here is the first test case from test/stage2/test.zig converted to declarative form:manifest.json
file structure would look something like:
On each update, the test harness scans over
sources
and copies the files listed there to a temporary directory, which acts as the source directory for the test compilation.The text was updated successfully, but these errors were encountered: