From fdf373f65a219335e6942329077e0452921c81ca Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 7 Nov 2013 02:21:38 +0100 Subject: [tests] adapt spec runner --- mkcharacters | 1 + mkglyphlist | 2 ++ mkstatus | 1 + mktests | 7 ++++--- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mkcharacters b/mkcharacters index 63c78ed..69201fb 100755 --- a/mkcharacters +++ b/mkcharacters @@ -153,3 +153,4 @@ end io.write "Emergency exit.\n" os.exit(1) +--- vim:ft=lua:ts=2:et:sw=2 diff --git a/mkglyphlist b/mkglyphlist index 8b89935..e476eca 100755 --- a/mkglyphlist +++ b/mkglyphlist @@ -169,3 +169,5 @@ end return main() + +--- vim:ft=lua:ts=2:et:sw=2 diff --git a/mkstatus b/mkstatus index a8d9233..8ca4237 100755 --- a/mkstatus +++ b/mkstatus @@ -146,3 +146,4 @@ end return main () +--- vim:ft=lua:ts=2:et:sw=2 diff --git a/mktests b/mktests index cf53626..e7949fb 100755 --- a/mktests +++ b/mktests @@ -149,7 +149,7 @@ local default_spec = { local resolve_font_name = function () local failed, total = 0, 0 - local resolve_name = names.resolve + local resolve_name = names.resolve_name for nset = 1, #font_name_tests do local set = font_name_tests[nset] @@ -161,7 +161,7 @@ local resolve_font_name = function () local input_spec = table.copy (default_spec) input_spec.name = input input_spec.specification = input_spec.lookup .. ":" .. input - local result = resolve_name (nil, nil, input_spec) == output + local result = resolve_name (input_spec) == output total = total + 1 if not result then failed = failed + 1 @@ -174,7 +174,7 @@ local resolve_font_name = function () or default_spec.lookup) .. ":" .. input_spec.name input_spec.optsize = input_spec.optsize or default_spec.optsize - local result = resolve_name (nil, nil, input_spec) == output + local result = resolve_name (input_spec) == output total = total + 1 if not result then failed = failed + 1 @@ -218,3 +218,4 @@ end return main () +--- vim:ft=lua:ts=2:et:sw=2 -- cgit v1.2.3