Skip to content

Commit

Permalink
rename test.zig to example.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Sep 6, 2024
1 parent 1ffa6ce commit 2df5e31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ pub fn build(b: *std.Build) !void {
lib_unit_tests.linkLibrary(libsecp256k1);
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);

const global_tests = b.addTest(.{
.root_source_file = b.path("src/tests.zig"),
const example_tests = b.addTest(.{
.root_source_file = b.path("src/examples.zig"),
.target = target,
});
global_tests.linkLibrary(libsecp256k1);
const run_global_test = b.addRunArtifact(global_tests);
example_tests.linkLibrary(libsecp256k1);
const run_example_test = b.addRunArtifact(example_tests);

// Similar to creating the run step earlier, this exposes a `test` step to
// the `zig build --help` menu, providing a way for the user to request
// running the unit tests.
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_lib_unit_tests.step);
test_step.dependOn(&run_global_test.step);
test_step.dependOn(&run_example_test.step);
}
File renamed without changes.

0 comments on commit 2df5e31

Please sign in to comment.