From 0d5795c0a5f6542f9e7483be235efc37cec55273 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 16 Mar 2025 21:35:25 -0600 Subject: [PATCH] [test/shape] Report shaper, face-loader, font-funcs --- test/shape/run-tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/shape/run-tests.py b/test/shape/run-tests.py index c1b4a8261..e2430bb22 100755 --- a/test/shape/run-tests.py +++ b/test/shape/run-tests.py @@ -110,6 +110,9 @@ for filename in args: continue skip_test = False + shaper = "" + face_loader = "" + font_funcs = "" for what in ["--shaper", "--face-loader", "--font-funcs"]: it = iter(options) for option in it: @@ -123,11 +126,17 @@ for filename in args: print("Skipping test with ${what}=${backend}.") skip_test = True break + what = what[2:].replace("-", "_") + globals()[what] = backend if skip_test: break if skip_test: continue + print( + "shaper=%s face_loader=%s font_funcs=%s" % (shaper, face_loader, font_funcs) + ) + if "--font-funcs=ot" in options or not have_freetype: glyphs1 = shape_cmd( [fontfile, "--font-funcs=ot"]