Skip to content

Commit

Permalink
Split tests into files in new test directory
Browse files Browse the repository at this point in the history
Signed-off-by: Euan Torano <[email protected]>
  • Loading branch information
euantorano committed Apr 30, 2019
1 parent ae86061 commit 0ee7ad0
Show file tree
Hide file tree
Showing 5 changed files with 498 additions and 466 deletions.
4 changes: 3 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ const Builder = @import("std").build.Builder;

pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();

const lib = b.addStaticLibrary("ip", "src/main.zig");
lib.setBuildMode(mode);

var main_tests = b.addTest("src/main.zig");
var main_tests = b.addTest("test/main.zig");
main_tests.setBuildMode(mode);
main_tests.addPackagePath("ip", "src/main.zig");

const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);
Expand Down
Loading

0 comments on commit 0ee7ad0

Please sign in to comment.