From 723e0b0989d9d8b4a09f47d8d1f2acb4d75cd1ae Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 2 Apr 2024 17:47:50 -0700 Subject: [PATCH] add commented out "normal test" pattern --- build.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.zig b/build.zig index 8dc3450..c257e7c 100644 --- a/build.zig +++ b/build.zig @@ -171,6 +171,20 @@ pub fn build(b: *Builder) !void { // running the unit tests. const test_step = b.step("test", "Run unit tests"); + // // Creates a step for unit testing. This only builds the test executable + // // but does not run it. + // const unit_tests = b.addTest(.{ + // .root_source_file = .{ .path = "src/aws.zig" }, + // .target = target, + // .optimize = optimize, + // }); + // unit_tests.root_module.addImport("smithy", smithy_dep.module("smithy")); + // unit_tests.step.dependOn(gen_step); + // + // const run_unit_tests = b.addRunArtifact(unit_tests); + // run_unit_tests.skip_foreign_checks = true; + + // test_step.dependOn(&run_unit_tests.step); for (test_targets) |t| { // Creates a step for unit testing. This only builds the test executable // but does not run it.