2017-04-18 22:13:15 -07:00
|
|
|
const Builder = @import("std").build.Builder;
|
|
|
|
const tests = @import("test/tests.zig");
|
|
|
|
|
|
|
|
pub fn build(b: &Builder) {
|
|
|
|
const test_filter = b.option([]const u8, "test-filter", "Skip tests that do not match filter");
|
|
|
|
const test_step = b.step("test", "Run all the tests");
|
|
|
|
|
2017-04-30 15:56:24 -07:00
|
|
|
test_step.dependOn(tests.addPkgTests(b, test_filter,
|
2017-04-19 23:26:36 -07:00
|
|
|
"test/behavior.zig", "behavior", "Run the behavior tests"));
|
2017-04-19 01:12:22 -07:00
|
|
|
|
2017-04-30 15:56:24 -07:00
|
|
|
test_step.dependOn(tests.addPkgTests(b, test_filter,
|
2017-04-19 23:26:36 -07:00
|
|
|
"std/index.zig", "std", "Run the standard library tests"));
|
|
|
|
|
2017-08-18 10:51:16 -07:00
|
|
|
test_step.dependOn(tests.addPkgTestsAlwaysLibc(b, test_filter,
|
|
|
|
"std/special/compiler_rt/index.zig", "compiler-rt", "Run the compiler_rt tests"));
|
|
|
|
|
2017-04-30 15:56:24 -07:00
|
|
|
test_step.dependOn(tests.addCompareOutputTests(b, test_filter));
|
|
|
|
test_step.dependOn(tests.addBuildExampleTests(b, test_filter));
|
|
|
|
test_step.dependOn(tests.addCompileErrorTests(b, test_filter));
|
|
|
|
test_step.dependOn(tests.addAssembleAndLinkTests(b, test_filter));
|
|
|
|
test_step.dependOn(tests.addDebugSafetyTests(b, test_filter));
|
2017-09-05 19:55:03 -07:00
|
|
|
test_step.dependOn(tests.addParseCTests(b, test_filter));
|
2017-04-18 22:13:15 -07:00
|
|
|
}
|