zig/test/link.zig

196 lines
5.9 KiB
Zig

pub const Case = struct {
build_root: []const u8,
import: type,
};
pub const cases = [_]Case{
.{
.build_root = "test/link/bss",
.import = @import("link/bss/build.zig"),
},
.{
.build_root = "test/link/common_symbols",
.import = @import("link/common_symbols/build.zig"),
},
.{
.build_root = "test/link/common_symbols_alignment",
.import = @import("link/common_symbols_alignment/build.zig"),
},
.{
.build_root = "test/link/interdependent_static_c_libs",
.import = @import("link/interdependent_static_c_libs/build.zig"),
},
.{
.build_root = "test/link/static_libs_from_object_files",
.import = @import("link/static_libs_from_object_files/build.zig"),
},
.{
.build_root = "test/link/glibc_compat",
.import = @import("link/glibc_compat/build.zig"),
},
// WASM Cases
.{
.build_root = "test/link/wasm/archive",
.import = @import("link/wasm/archive/build.zig"),
},
.{
.build_root = "test/link/wasm/basic-features",
.import = @import("link/wasm/basic-features/build.zig"),
},
.{
.build_root = "test/link/wasm/bss",
.import = @import("link/wasm/bss/build.zig"),
},
.{
.build_root = "test/link/wasm/export",
.import = @import("link/wasm/export/build.zig"),
},
.{
.build_root = "test/link/wasm/export-data",
.import = @import("link/wasm/export-data/build.zig"),
},
.{
.build_root = "test/link/wasm/extern",
.import = @import("link/wasm/extern/build.zig"),
},
.{
.build_root = "test/link/wasm/extern-mangle",
.import = @import("link/wasm/extern-mangle/build.zig"),
},
.{
.build_root = "test/link/wasm/function-table",
.import = @import("link/wasm/function-table/build.zig"),
},
.{
.build_root = "test/link/wasm/infer-features",
.import = @import("link/wasm/infer-features/build.zig"),
},
.{
.build_root = "test/link/wasm/producers",
.import = @import("link/wasm/producers/build.zig"),
},
.{
.build_root = "test/link/wasm/segments",
.import = @import("link/wasm/segments/build.zig"),
},
.{
.build_root = "test/link/wasm/stack_pointer",
.import = @import("link/wasm/stack_pointer/build.zig"),
},
.{
.build_root = "test/link/wasm/type",
.import = @import("link/wasm/type/build.zig"),
},
// Mach-O Cases
.{
.build_root = "test/link/macho/bugs/13056",
.import = @import("link/macho/bugs/13056/build.zig"),
},
.{
.build_root = "test/link/macho/bugs/13457",
.import = @import("link/macho/bugs/13457/build.zig"),
},
.{
.build_root = "test/link/macho/bugs/16308",
.import = @import("link/macho/bugs/16308/build.zig"),
},
.{
.build_root = "test/link/macho/bugs/16628",
.import = @import("link/macho/bugs/16628/build.zig"),
},
.{
.build_root = "test/link/macho/dead_strip",
.import = @import("link/macho/dead_strip/build.zig"),
},
.{
.build_root = "test/link/macho/dead_strip_dylibs",
.import = @import("link/macho/dead_strip_dylibs/build.zig"),
},
.{
.build_root = "test/link/macho/dylib",
.import = @import("link/macho/dylib/build.zig"),
},
.{
.build_root = "test/link/macho/empty",
.import = @import("link/macho/empty/build.zig"),
},
.{
.build_root = "test/link/macho/entry",
.import = @import("link/macho/entry/build.zig"),
},
.{
.build_root = "test/link/macho/entry_in_archive",
.import = @import("link/macho/entry_in_archive/build.zig"),
},
.{
.build_root = "test/link/macho/entry_in_dylib",
.import = @import("link/macho/entry_in_dylib/build.zig"),
},
.{
.build_root = "test/link/macho/headerpad",
.import = @import("link/macho/headerpad/build.zig"),
},
.{
.build_root = "test/link/macho/linksection",
.import = @import("link/macho/linksection/build.zig"),
},
.{
.build_root = "test/link/macho/needed_framework",
.import = @import("link/macho/needed_framework/build.zig"),
},
.{
.build_root = "test/link/macho/needed_library",
.import = @import("link/macho/needed_library/build.zig"),
},
.{
.build_root = "test/link/macho/objc",
.import = @import("link/macho/objc/build.zig"),
},
.{
.build_root = "test/link/macho/objcpp",
.import = @import("link/macho/objcpp/build.zig"),
},
.{
.build_root = "test/link/macho/pagezero",
.import = @import("link/macho/pagezero/build.zig"),
},
.{
.build_root = "test/link/macho/reexports",
.import = @import("link/macho/reexports/build.zig"),
},
.{
.build_root = "test/link/macho/search_strategy",
.import = @import("link/macho/search_strategy/build.zig"),
},
.{
.build_root = "test/link/macho/stack_size",
.import = @import("link/macho/stack_size/build.zig"),
},
.{
.build_root = "test/link/macho/strict_validation",
.import = @import("link/macho/strict_validation/build.zig"),
},
.{
.build_root = "test/link/macho/tbdv3",
.import = @import("link/macho/tbdv3/build.zig"),
},
.{
.build_root = "test/link/macho/tls",
.import = @import("link/macho/tls/build.zig"),
},
.{
.build_root = "test/link/macho/unwind_info",
.import = @import("link/macho/unwind_info/build.zig"),
},
.{
.build_root = "test/link/macho/weak_library",
.import = @import("link/macho/weak_library/build.zig"),
},
.{
.build_root = "test/link/macho/weak_framework",
.import = @import("link/macho/weak_framework/build.zig"),
},
};