re-enable lib tests
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 3m45s

This commit is contained in:
Emil Lerch 2024-01-09 14:42:18 -08:00
parent 098ceffb41
commit 31b363bc0d
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -88,19 +88,19 @@ pub fn build(b: *std.Build) !void {
// with various roots that all meet the rest of the build DAG at test_step
// in the future. Scaleway, for instance, is another system that works
// via shared library
// const lib_tests = b.addTest(.{
// .root_source_file = .{ .path = "src/flexilib.zig" },
// .target = t,
// .optimize = optimize,
// });
// _ = try universal_lambda.addModules(b, lib_tests);
//
// var run_lib_tests = b.addRunArtifact(lib_tests);
// run_lib_tests.skip_foreign_checks = true;
// // This creates a build step. It will be visible in the `zig build --help` menu,
// // and can be selected like this: `zig build test`
// // This will evaluate the `test` step rather than the default, which is "install".
// test_step.dependOn(&run_lib_tests.step);
const lib_tests = b.addTest(.{
.root_source_file = .{ .path = "src/flexilib.zig" },
.target = t,
.optimize = optimize,
});
_ = try universal_lambda.addModules(b, lib_tests);
var run_lib_tests = b.addRunArtifact(lib_tests);
run_lib_tests.skip_foreign_checks = true;
// This creates a build step. It will be visible in the `zig build --help` menu,
// and can be selected like this: `zig build test`
// This will evaluate the `test` step rather than the default, which is "install".
test_step.dependOn(&run_lib_tests.step);
}
}