Skip to content

Commit

Permalink
fixed integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed May 12, 2024
1 parent 99e82ef commit 0dd1dd9
Show file tree
Hide file tree
Showing 50 changed files with 397 additions and 60,914 deletions.
13 changes: 12 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const external_dependencies = [_]build_helpers.Dependency{
.name = "zig-cli",
.module_name = "zig-cli",
},
.{
.name = "starknet",
.module_name = "ziggy-starkdust",
},
};

// Although this function looks imperative, note that its job is to
Expand Down Expand Up @@ -111,7 +115,7 @@ pub fn build(b: *std.Build) void {
run_cmd.addArgs(args);
}

integration_test(b, optimize, target);
integration_test(b, optimize, target, deps);

// This creates a build step. It will be visible in the `zig build --help` menu,
// and can be selected like this: `zig build poseidon_consts_gen`
Expand Down Expand Up @@ -169,6 +173,7 @@ fn integration_test(
b: *std.Build,
mode: std.builtin.Mode,
target: std.Build.ResolvedTarget,
deps: []std.Build.Module.Import,
) void {
const binary = b.addExecutable(.{
.name = "integration_test",
Expand All @@ -177,6 +182,12 @@ fn integration_test(
.optimize = mode,
});

// Add dependency modules to the executable.
for (deps) |mod| binary.root_module.addImport(
mod.name,
mod.module,
);

const integration_test_build = b.step("integration_test", "Build cli integration tests");
integration_test_build.dependOn(&binary.step);

Expand Down
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
.url = "https://github.com/sam701/zig-cli/archive/refs/heads/main.tar.gz",
.hash = "1220c008492d9460c3be2b209600a948181e6efb3bf0d79a1633def499632e708f4b",
},
.starknet = .{
.url = "https://github.com/StringNick/starknet-zig/archive/refs/heads/main.tar.gz",
.hash = "122042d00216821bd2fcd255129dff9b8b69b945347758f8729b44ec2d86734de536",
},
},
}
86 changes: 0 additions & 86 deletions cairo_programs/benchmarks/integration_builtins.cairo

This file was deleted.

Loading

0 comments on commit 0dd1dd9

Please sign in to comment.