mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[test/shape] Allow specifying shaper / face-loader as env-vars
This commit is contained in:
1 parent
01b7e2ec80
commit
2f7fbeeea2
1 file changed
+6
-3
@@ -142,8 +142,8 @@ for filename in args:
|
||||
for what in ["shaper", "face-loader", "font-funcs"]:
|
||||
all_var_name = all_whats_var_name(what)
|
||||
globals()[all_var_name] = supported_whats(what)
|
||||
all_face_loaders = ["ot"] # But only 'ot' face-loader
|
||||
all_shapers = ["ot"] # But only 'ot' shaper
|
||||
all_face_loaders = os.environ.get("HB_FACE_LOADER", "ot").split(",")
|
||||
all_shapers = os.environ.get("HB_SHAPER_LIST", "ot").split(",")
|
||||
|
||||
# Right now we only test the 'ot' shaper if nothing specified,
|
||||
# but try all font-funcs unless overriden.
|
||||
@@ -263,8 +263,11 @@ for filename in args:
|
||||
|
||||
for face_loader in [face_loader] if face_loader else all_whats("face-loader"):
|
||||
for shaper in [shaper] if shaper else all_whats("shaper"):
|
||||
all_font_funcs_for_shaper = (
|
||||
all_whats("font-funcs") if shaper == "ot" else [None]
|
||||
)
|
||||
for font_funcs in (
|
||||
[font_funcs] if font_funcs else all_whats("font-funcs")
|
||||
[font_funcs] if font_funcs else all_font_funcs_for_shaper
|
||||
):
|
||||
number += 1
|
||||
extra_options = []
|
||||
|
||||
Reference in new issue
Block a user