font: exclude libghostty-vt from embedded font tests

This commit is contained in:
Mitchell Hashimoto
2026-06-05 08:10:41 -07:00
parent 1c0aac54bd
commit 05eeb43942
2 changed files with 21 additions and 0 deletions

View File

@@ -672,6 +672,9 @@ fn testAppendHeader(
}
test "glyf" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
// Cozette because it doesn't have any hinting.
@@ -874,6 +877,9 @@ test "glyf: decode contour ending at max point index" {
}
test "glyf: reject glyphs with instructions and composite glyphs" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
const test_font = @import("../embedded.zig").jetbrains_mono;
@@ -908,6 +914,9 @@ test "glyf: reject glyphs with instructions and composite glyphs" {
}
test "glyf: reject truncated" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
// Cozette because it doesn't have any hinting.
@@ -926,6 +935,9 @@ test "glyf: reject truncated" {
}
test "glyf: reject endpoints out of order" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
// Cozette because it doesn't have any hinting.
@@ -952,6 +964,9 @@ test "glyf: reject endpoints out of order" {
}
test "glyf: reject too many points" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
// Cozette because it doesn't have any hinting.

View File

@@ -285,6 +285,9 @@ pub const SFNT = struct {
const native_endian = @import("builtin").target.cpu.arch.endian();
test "parse font" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;
@@ -298,6 +301,9 @@ test "parse font" {
}
test "get table" {
// lib-vt source archives intentionally exclude full Ghostty font fixtures.
if (comptime @import("terminal_options").artifact == .lib) return error.SkipZigTest;
const testing = std.testing;
const alloc = testing.allocator;