build baseline: pinned sqlite + mbedtls, static musl cross targets, cli stub
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
const std = @import("std");
|
||||
|
||||
comptime {
|
||||
_ = @import("main.zig");
|
||||
_ = @import("version.zig");
|
||||
_ = @import("platform/address.zig");
|
||||
_ = @import("platform/tls_client.zig");
|
||||
_ = @import("platform/tls_client_integration_test.zig");
|
||||
_ = @import("platform/tls_server.zig");
|
||||
}
|
||||
|
||||
extern fn sqlite3_libversion() [*:0]const u8;
|
||||
/// Mbed TLS documents 18 bytes as the minimum buffer size for this call.
|
||||
extern fn mbedtls_version_get_string_full(buffer: [*]u8) void;
|
||||
|
||||
test "sqlite3 links and reports a version" {
|
||||
const reported = std.mem.span(sqlite3_libversion());
|
||||
try std.testing.expect(reported.len > 0);
|
||||
try std.testing.expect(std.mem.startsWith(u8, reported, "3."));
|
||||
}
|
||||
|
||||
test "mbedtls links and reports a version" {
|
||||
var buffer: [32]u8 = undefined;
|
||||
mbedtls_version_get_string_full(&buffer);
|
||||
const reported = std.mem.sliceTo(&buffer, 0);
|
||||
try std.testing.expect(reported.len > 0);
|
||||
try std.testing.expect(std.mem.startsWith(u8, reported, "Mbed TLS 3.6"));
|
||||
}
|
||||
Reference in New Issue
Block a user