targets -> target

develop
Myk Taylor 2023-08-04 09:59:08 -07:00
parent a6de9a21fa
commit 4c89af7c20
No known key found for this signature in database
26 changed files with 26 additions and 27 deletions

@ -379,7 +379,7 @@ local function load_tests(file, tests)
dfhack.printerr('Skipping tests for unspecified target in ' .. file)
return true -- TODO: change to false once existing tests have targets specified
end
local targets = type(env.config.targets) == table and env.config.targets or {env.config.targets}
local targets = type(env.config.target) == table and env.config.target or {env.config.target}
for _,target in ipairs(targets) do
if target == 'core' then goto continue end
if type(target) ~= 'string' or not helpdb.is_entry(target) or

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local function clean_path(p)
-- todo: replace with dfhack.filesystem call?

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.toSearchNormalized()
expect.eq(dfhack.toSearchNormalized(''), '')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.getCurViewscreen()
local scr = dfhack.gui.getCurViewscreen()

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local argparse = require('argparse')
local guidm = require('gui.dwarfmode')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local gui = require('gui')

@ -1,4 +1,4 @@
--config.targets = 'core'
--config.target = 'core'
local gui = require('gui')
local function send_keys(...)

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local widgets = require('gui.widgets')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local gui = require('gui')
local widgets = require('gui.widgets')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local gui = require('gui')
local widgets = require('gui.widgets')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local widgets = require('gui.widgets')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local h = require('helpdb')

@ -1,6 +1,6 @@
-- tests misc functions added by dfhack.lua
config.targets = 'core'
config.target = 'core'
function test.safe_pairs()
for k,v in safe_pairs(nil) do

@ -1,6 +1,6 @@
-- tests print-related functions added by dfhack.lua
config.targets = 'core'
config.target = 'core'
local dfhack = dfhack

@ -1,6 +1,6 @@
-- tests string functions added by dfhack.lua
config.targets = 'core'
config.target = 'core'
function test.startswith()
expect.true_(('abcd'):startswith(''))

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local expect_raw = require('test_util.expect')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local mock = require('test_util.mock')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local utils = require 'utils'

@ -1,5 +1,5 @@
config.mode = 'title'
config.targets = 'core'
config.target = 'core'
local function clean_vec(vec)
while #vec > 0 do

@ -1,5 +1,4 @@
-- TODO: fix crash in test.viewscreenDtors with viewscreen_legendsst
--config.targets = 'core'
config.target = 'core'
function test.overlappingGlobals()
local globals = {}

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.index_name()
for _, k in ipairs(df.units_other_id) do

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
utils = require('utils')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.get()
dfhack.with_temp_object(df.unit:new(), function(unit)

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.struct()
expect.eq(df.coord._kind, 'struct-type')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
local utils = require('utils')

@ -1,4 +1,4 @@
config.targets = 'core'
config.target = 'core'
function test.internal_in_test()
expect.true_(dfhack.internal.IN_TEST)