| author | |
| committer | |
| log | 3fbf99ea5f22ecede384af4d1e13e175e3c493f1 |
| tree | a0cc08df169caa57c62cb314c9b5c06a057e921d |
| parent | 472401144dc9221ef65db8dd06fa5e06e1980a91 |
3 files changed, 19 insertions(+), 5 deletions(-)
build.zig+11-2| ... | @@ -23,6 +23,15 @@ pub fn build(b: *std.Build) void { | ... | @@ -23,6 +23,15 @@ pub fn build(b: *std.Build) void { |
| 23 | const run_step = b.step("run", "Run the app"); | 23 | const run_step = b.step("run", "Run the app"); |
| 24 | run_step.dependOn(&run_cmd.step); | 24 | run_step.dependOn(&run_cmd.step); |
| 25 | 25 | ||
| 26 | const test_step = b.step("test", "dummy test step to pass CI checks"); | 26 | const tests = b.addTest(.{ |
| 27 | _ = test_step; | 27 | .root_source_file = b.path("test.zig"), |
| 28 | .target = target, | ||
| 29 | .optimize = mode, | ||
| 30 | }); | ||
| 31 | deps.addAllTo(tests); | ||
| 32 | |||
| 33 | const test_step = b.step("test", "Run all library tests"); | ||
| 34 | const tests_run = b.addRunArtifact(tests); | ||
| 35 | tests_run.has_side_effects = true; | ||
| 36 | test_step.dependOn(&tests_run.step); | ||
| 28 | } | 37 | } |
licenses.txt+1-3| ... | @@ -7,10 +7,8 @@ MIT: | ... | @@ -7,10 +7,8 @@ MIT: |
| 7 | - git https://github.com/nektro/zig-extras | 7 | - git https://github.com/nektro/zig-extras |
| 8 | - git https://github.com/nektro/zig-tracer | 8 | - git https://github.com/nektro/zig-tracer |
| 9 | - git https://github.com/truemedian/hzzp | 9 | - git https://github.com/truemedian/hzzp |
| 10 | - git https://github.com/kivikakk/htmlentities.zig | ||
| 10 | 11 | ||
| 11 | MPL-2.0: | 12 | MPL-2.0: |
| 12 | = https://spdx.org/licenses/MPL-2.0 | 13 | = https://spdx.org/licenses/MPL-2.0 |
| 13 | - git https://github.com/nektro/zig-pek | 14 | - git https://github.com/nektro/zig-pek |
| 14 | |||
| 15 | Unspecified: | ||
| 16 | - git https://github.com/kivikakk/htmlentities.zig |
test.zig created+7| ... | @@ -0,0 +1,7 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | const oauth2 = @import("oauth2"); | ||
| 3 | |||
| 4 | // TODO: how do we make this better? | ||
| 5 | test { | ||
| 6 | std.testing.refAllDeclsRecursive(oauth2); | ||
| 7 | } | ||