authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-02-06 04:37:05 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-02-06 04:37:05 -08:00
log3fbf99ea5f22ecede384af4d1e13e175e3c493f1
treea0cc08df169caa57c62cb314c9b5c06a057e921d
parent472401144dc9221ef65db8dd06fa5e06e1980a91

add tests


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);
2525
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-extras7- git https://github.com/nektro/zig-extras
8- git https://github.com/nektro/zig-tracer8- git https://github.com/nektro/zig-tracer
9- git https://github.com/truemedian/hzzp9- git https://github.com/truemedian/hzzp
10- git https://github.com/kivikakk/htmlentities.zig
1011
11MPL-2.0:12MPL-2.0:
12= https://spdx.org/licenses/MPL-2.013= https://spdx.org/licenses/MPL-2.0
13- git https://github.com/nektro/zig-pek14- git https://github.com/nektro/zig-pek
14
15Unspecified:
16- git https://github.com/kivikakk/htmlentities.zig
test.zig created+7
...@@ -0,0 +1,7 @@
1const std = @import("std");
2const oauth2 = @import("oauth2");
3
4// TODO: how do we make this better?
5test {
6 std.testing.refAllDeclsRecursive(oauth2);
7}