Initial Release
This commit is contained in:
commit
5a00e06cb9
81 changed files with 12670 additions and 0 deletions
65
test/tests_cpp.zig
Normal file
65
test/tests_cpp.zig
Normal file
|
@ -0,0 +1,65 @@
|
|||
const std = @import("std");
|
||||
const c = @cImport({
|
||||
@cInclude("tests.h");
|
||||
});
|
||||
|
||||
fn testcase(name: [*c]const u8) !void {
|
||||
const result = c.runtestcase(name);
|
||||
try std.testing.expectEqual(@as(c_int, 0), result);
|
||||
}
|
||||
|
||||
test "cbor_match" {
|
||||
try testcase("cbor_match");
|
||||
}
|
||||
|
||||
test "debug" {
|
||||
try testcase("debug");
|
||||
}
|
||||
|
||||
test "endpoint_unx" {
|
||||
try testcase("endpoint_unx");
|
||||
}
|
||||
|
||||
test "endpoint_tcp" {
|
||||
try testcase("endpoint_tcp");
|
||||
}
|
||||
|
||||
test "hub_filter" {
|
||||
try testcase("hub_filter");
|
||||
}
|
||||
|
||||
test "ip_tcp_client_server" {
|
||||
try testcase("ip_tcp_client_server");
|
||||
}
|
||||
|
||||
test "ip_udp_echo" {
|
||||
try testcase("ip_udp_echo");
|
||||
}
|
||||
|
||||
test "metronome_test" {
|
||||
try testcase("metronome_test");
|
||||
}
|
||||
|
||||
test "perf_cbor" {
|
||||
try testcase("perf_cbor");
|
||||
}
|
||||
|
||||
test "perf_hub" {
|
||||
try testcase("perf_hub");
|
||||
}
|
||||
|
||||
test "perf_ring" {
|
||||
try testcase("perf_ring");
|
||||
}
|
||||
|
||||
test "perf_spawn" {
|
||||
try testcase("perf_spawn");
|
||||
}
|
||||
|
||||
test "spawn_exit" {
|
||||
try testcase("spawn_exit");
|
||||
}
|
||||
|
||||
test "timeout_test" {
|
||||
try testcase("timeout_test");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue