const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const mod = b.addModule("k256", .{ .root_source_file = b.path("src/root.zig"), .target = target, .optimize = optimize, }); // library tests (src/) const lib_tests = b.addTest(.{ .root_module = mod }); const run_lib_tests = b.addRunArtifact(lib_tests); // integration tests (tests/) const int_mod = b.addModule("verify_test", .{ .root_source_file = b.path("tests/verify_test.zig"), .target = target, .optimize = optimize, .imports = &.{ .{ .name = "k256", .module = mod }, }, }); const int_tests = b.addTest(.{ .root_module = int_mod }); const run_int_tests = b.addRunArtifact(int_tests); const test_step = b.step("test", "run all tests"); test_step.dependOn(&run_lib_tests.step); test_step.dependOn(&run_int_tests.step); }