update docs with new script path

develop
myk002 2021-03-22 11:09:44 -07:00
parent e157c20fc2
commit a9192ebe12
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 11 additions and 12 deletions

@ -8,14 +8,14 @@ local utils = require 'utils'
local help_text = local help_text =
[====[ [====[
test/main test
========= ====
Run DFHack tests. Run DFHack tests.
Usage: Usage:
test/main [<options>] [<done_command>] test [<options>] [<done_command>]
If a done_command is specified, it will be run after the tests complete. If a done_command is specified, it will be run after the tests complete.
@ -35,14 +35,13 @@ Options:
Examples: Examples:
test/main runs all tests test runs all tests
test/main -r runs all tests that haven't been run before test -r runs all tests that haven't been run before
test/main -m none runs tests that don't need the game to be in a test -m none runs tests that don't need the game to be in a
specific mode specific mode
test/main -t quickfort runs quickfort tests test -t quickfort runs quickfort tests
test/main -d /path/to/dfhack-scripts/repo/test test -d /path/to/dfhack-scripts/repo/test
runs tests in your in-development branch of the runs tests in your dev scripts repo
scripts repo
Default values for the options may be set in a file named test_config.json in Default values for the options may be set in a file named test_config.json in
your DF folder. Options with comma-separated values should be written as json your DF folder. Options with comma-separated values should be written as json
@ -285,7 +284,7 @@ local function get_test_files(test_dir)
local files = {} local files = {}
print('Loading tests from ' .. test_dir) print('Loading tests from ' .. test_dir)
for _, entry in ipairs(dfhack.filesystem.listdir_recursive(test_dir)) do for _, entry in ipairs(dfhack.filesystem.listdir_recursive(test_dir)) do
if not entry.isdir and not entry.path:match('main.lua') then if not entry.isdir then
table.insert(files, entry.path) table.insert(files, entry.path)
end end
end end