zero tests mean pass

develop
Myk Taylor 2023-08-03 20:48:15 -07:00
parent 43a1fdc69c
commit ec461bcce5
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

@ -376,8 +376,8 @@ local function load_tests(file, tests)
return false return false
end end
if not env.config.targets then if not env.config.targets then
dfhack.printerr('Test target(s) not specified in ' .. file) dfhack.printerr('Skipping tests for unspecified target in ' .. file)
return false return true -- TODO: change to false once existing tests have targets specified
end end
local targets = type(env.config.targets) == table and env.config.targets or {env.config.targets} local targets = type(env.config.targets) == table and env.config.targets or {env.config.targets}
for _,target in ipairs(targets) do for _,target in ipairs(targets) do
@ -386,7 +386,7 @@ local function load_tests(file, tests)
helpdb.get_entry_tags(target).unavailable helpdb.get_entry_tags(target).unavailable
then then
dfhack.printerr('Skipping tests for unavailable target: ' .. target) dfhack.printerr('Skipping tests for unavailable target: ' .. target)
return false return true
end end
::continue:: ::continue::
end end

@ -169,7 +169,7 @@ if(BUILD_SUPPORTED)
#dfhack_plugin(trackstop trackstop.cpp) #dfhack_plugin(trackstop trackstop.cpp)
#dfhack_plugin(tubefill tubefill.cpp) #dfhack_plugin(tubefill tubefill.cpp)
#add_subdirectory(tweak) #add_subdirectory(tweak)
#dfhack_plugin(workflow workflow.cpp LINK_LIBRARIES lua) dfhack_plugin(workflow workflow.cpp LINK_LIBRARIES lua)
dfhack_plugin(work-now work-now.cpp) dfhack_plugin(work-now work-now.cpp)
dfhack_plugin(xlsxreader xlsxreader.cpp LINK_LIBRARIES lua xlsxio_read_STATIC zip expat) dfhack_plugin(xlsxreader xlsxreader.cpp LINK_LIBRARIES lua xlsxio_read_STATIC zip expat)
dfhack_plugin(zone zone.cpp LINK_LIBRARIES lua) dfhack_plugin(zone zone.cpp LINK_LIBRARIES lua)