summaryrefslogtreecommitdiff
path: root/mktests
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-07 02:21:38 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-07 02:21:38 +0100
commitfdf373f65a219335e6942329077e0452921c81ca (patch)
tree650423adf3645925d22a26eddba57a14e2397f67 /mktests
parent1eba3465773d90ac51f961bd74f6addb649ec0df (diff)
downloadluaotfload-fdf373f65a219335e6942329077e0452921c81ca.tar.gz
[tests] adapt spec runner
Diffstat (limited to 'mktests')
-rwxr-xr-xmktests7
1 files changed, 4 insertions, 3 deletions
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