Skip to content

Commit f5b1bbe

Browse files
committed
test: add msgpack conformance vectors
1 parent 34acb35 commit f5b1bbe

2 files changed

Lines changed: 287 additions & 1 deletion

File tree

build.zig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) !void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
66

7-
_ = b.addModule("msgpack", .{
7+
const msgpack_module = b.addModule("msgpack", .{
88
.root_source_file = b.path("src/msgpack.zig"),
99
});
1010

@@ -18,6 +18,20 @@ pub fn build(b: *std.Build) !void {
1818

1919
const run_test = b.addRunArtifact(tests);
2020

21+
const full_conformance_test_module = b.createModule(.{
22+
.root_source_file = b.path("tests/full_conformance_vectors.zig"),
23+
.target = target,
24+
.optimize = optimize,
25+
});
26+
full_conformance_test_module.addImport("msgpack", msgpack_module);
27+
28+
const full_conformance_tests = b.addTest(.{
29+
.root_module = full_conformance_test_module,
30+
});
31+
32+
const run_full_conformance_tests = b.addRunArtifact(full_conformance_tests);
33+
2134
const test_step = b.step("test", "Run tests");
2235
test_step.dependOn(&run_test.step);
36+
test_step.dependOn(&run_full_conformance_tests.step);
2337
}

0 commit comments

Comments
 (0)