aboutsummaryrefslogtreecommitdiff
path: root/test/cases.zig
blob: 942119f780483ab290708da55d55f24ce3a83963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const std = @import("std");
const TestContext = @import("../src/test.zig").TestContext;

// Self-hosted has differing levels of support for various architectures. For now we pass explicit
// target parameters to each test case. At some point we will take this to the next level and have
// a set of targets that all test cases run on unless specifically overridden. For now, each test
// case applies to only the specified target.

pub fn addCases(ctx: *TestContext) !void {
    try @import("compile_errors.zig").addCases(ctx);
    try @import("stage2/cbe.zig").addCases(ctx);
    try @import("stage2/arm.zig").addCases(ctx);
    try @import("stage2/aarch64.zig").addCases(ctx);
    try @import("stage2/llvm.zig").addCases(ctx);
    try @import("stage2/wasm.zig").addCases(ctx);
    try @import("stage2/riscv64.zig").addCases(ctx);
    try @import("stage2/plan9.zig").addCases(ctx);
    try @import("stage2/x86_64.zig").addCases(ctx);
    // https://github.com/ziglang/zig/issues/10968
    //try @import("stage2/nvptx.zig").addCases(ctx);
}