test: Add test-llvm-ir step and harness for testing generated LLVM IR.

This commit is contained in:
Alex Rønne Petersen
2024-11-28 16:17:02 +01:00
parent fe5dbc2474
commit e63e3f7a7c
4 changed files with 164 additions and 0 deletions

View File

@@ -550,6 +550,11 @@ pub fn build(b: *std.Build) !void {
.skip_non_native = skip_non_native,
.skip_libc = skip_libc,
})) |test_debugger_step| test_step.dependOn(test_debugger_step);
if (tests.addLlvmIrTests(b, .{
.enable_llvm = enable_llvm,
.test_filters = test_filters,
.test_target_filters = test_target_filters,
})) |test_llvm_ir_step| test_step.dependOn(test_llvm_ir_step);
try addWasiUpdateStep(b, version);