investigating memory issues
This commit is contained in:
@@ -61,7 +61,7 @@ jobs:
|
|||||||
which deqp-runner && deqp-runner --version || echo "deqp-runner not found"
|
which deqp-runner && deqp-runner --version || echo "deqp-runner not found"
|
||||||
|
|
||||||
- name: Run Vulkan CTS
|
- name: Run Vulkan CTS
|
||||||
run: zig build cts-soft --release=fast -- -j3
|
run: zig build cts-soft --release=fast -- -j3 --deqp-test-oom=disable
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Verify tests
|
- name: Verify tests
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const Implemen
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const mustpass = try cts.path("mustpass/master/vk-default.txt").getPath3(b, null).toString(b.allocator);
|
const mustpass = try cts.path("vk-default.txt").getPath3(b, null).toString(b.allocator);
|
||||||
|
|
||||||
const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator);
|
const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator);
|
||||||
|
|
||||||
@@ -241,6 +241,9 @@ fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const Implemen
|
|||||||
run.addArg(cts_exe_path);
|
run.addArg(cts_exe_path);
|
||||||
},
|
},
|
||||||
.valgrind => {
|
.valgrind => {
|
||||||
|
run.addArg("-s");
|
||||||
|
run.addArg("--leak-check=full");
|
||||||
|
run.addArg("--show-leak-kinds=all");
|
||||||
run.addArg("--track-origins=yes");
|
run.addArg("--track-origins=yes");
|
||||||
run.addArg(cts_exe_path);
|
run.addArg(cts_exe_path);
|
||||||
},
|
},
|
||||||
@@ -297,23 +300,17 @@ fn addMultithreadedCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *c
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
var mustpass_override: ?[]const u8 = null;
|
|
||||||
var jobs_count: ?usize = null;
|
var jobs_count: ?usize = null;
|
||||||
|
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
for (args) |arg| {
|
for (args) |arg| {
|
||||||
if (std.mem.startsWith(u8, arg, "--mustpass-list")) {
|
if (std.mem.startsWith(u8, arg, "-j")) {
|
||||||
mustpass_override = arg["--mustpass-list=".len..];
|
|
||||||
} else if (std.mem.startsWith(u8, arg, "-j")) {
|
|
||||||
jobs_count = try std.fmt.parseInt(usize, arg["-j".len..], 10);
|
jobs_count = try std.fmt.parseInt(usize, arg["-j".len..], 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mustpass_path = try cts.path(if (mustpass_override) |override|
|
const mustpass_path = try cts.path("mustpass/master/vk-default.txt").getPath3(b, null).toString(b.allocator);
|
||||||
b.fmt("mustpass/{s}/vk-default.txt", .{override})
|
|
||||||
else
|
|
||||||
"mustpass/master/vk-default.txt").getPath3(b, null).toString(b.allocator);
|
|
||||||
const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator);
|
const cts_exe_path = try cts_exe_name.getPath3(b, null).toString(b.allocator);
|
||||||
|
|
||||||
const run = b.addSystemCommand(&[_][]const u8{"deqp-runner"});
|
const run = b.addSystemCommand(&[_][]const u8{"deqp-runner"});
|
||||||
|
|||||||
+2
-2
@@ -22,8 +22,8 @@
|
|||||||
.hash = "zmath-0.11.0-dev-wjwivdMsAwD-xaLj76YHUq3t9JDH-X16xuMTmnDzqbu2",
|
.hash = "zmath-0.11.0-dev-wjwivdMsAwD-xaLj76YHUq3t9JDH-X16xuMTmnDzqbu2",
|
||||||
},
|
},
|
||||||
.cts_bin = .{
|
.cts_bin = .{
|
||||||
.url = "git+https://git.kbz8.me/kbz_8/Vulkan-CTS-bin#19ce2da05f8176348064a9fc6688847e5f76a46e",
|
.url = "git+https://git.kbz8.me/kbz_8/Vulkan-CTS-bin.git#a5f787d80f14f136e3cb3e1185c35e298846c1d7",
|
||||||
.hash = "N-V-__8AAHDV0xtS93nAGaYd7YWxBLnvHDEplwIpC29izSGa",
|
.hash = "N-V-__8AAMpOQxkHCKTw9i-NwmmQ3ks1ndFDXcVLlic4KjK3",
|
||||||
},
|
},
|
||||||
.cpuinfo = .{
|
.cpuinfo = .{
|
||||||
.url = "git+https://github.com/Kbz-8/cpuinfo.git#c9bea4f6c166a495ee0ce117821f9627d4aed118",
|
.url = "git+https://github.com/Kbz-8/cpuinfo.git#c9bea4f6c166a495ee0ce117821f9627d4aed118",
|
||||||
|
|||||||
Reference in New Issue
Block a user