diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-07 02:21:38 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-07 02:21:38 +0100 |
commit | fdf373f65a219335e6942329077e0452921c81ca (patch) | |
tree | 650423adf3645925d22a26eddba57a14e2397f67 | |
parent | 1eba3465773d90ac51f961bd74f6addb649ec0df (diff) | |
download | luaotfload-fdf373f65a219335e6942329077e0452921c81ca.tar.gz |
[tests] adapt spec runner
-rwxr-xr-x | mkcharacters | 1 | ||||
-rwxr-xr-x | mkglyphlist | 2 | ||||
-rwxr-xr-x | mkstatus | 1 | ||||
-rwxr-xr-x | 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 @@ -146,3 +146,4 @@ end return main () +--- vim:ft=lua:ts=2:et:sw=2 @@ -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 |