Commit Graph

91 Commits (dbf1eb1d4203013b3d352afec3d6c37b6068d71e)

Author SHA1 Message Date
Myk Taylor 5d295400d2
centralize management of mouse state 2023-10-01 16:28:18 -07:00
Myk Taylor 30e3b695a1
skip crashing tests and mark them as failed 2023-09-25 17:34:38 -07:00
Myk Taylor cc49c07870
click on buttons to drive the UI 2023-09-25 16:53:01 -07:00
Myk Taylor 0c1d73cfe6
adjust settings to v50 norms 2023-09-25 16:53:01 -07:00
Myk Taylor 989415cef0
use gui.simulateInput 2023-09-25 16:53:01 -07:00
Myk Taylor 8dc5f8e86b
fix screen depth and print syntax 2023-09-25 16:53:01 -07:00
Myk Taylor e8f0de4078
print screen dims 2023-09-25 16:53:01 -07:00
Myk Taylor 0d7f9a401f
output where we're clicking for debugging 2023-09-25 16:53:01 -07:00
Myk Taylor 8b3a3d4ebb
reduce tries to one so we don't lose stdout
other option: save stdout after every run and concatenate at the end
2023-09-25 16:53:01 -07:00
Myk Taylor 92b35e32cb
wait for initial load when transitioning states 2023-09-25 16:53:01 -07:00
Myk Taylor 4ffa78c96c
fix DF extraction on Linux 2023-09-25 16:53:01 -07:00
Myk Taylor 621d36fd3a
tighen up screen matching 2023-09-25 16:53:01 -07:00
Myk Taylor fd31d9eb03
enable fortress mode tests in CI 2023-09-25 16:53:01 -07:00
Myk Taylor c63906a91c
add clsocket to the update manifest 2023-09-05 01:54:57 -07:00
Myk Taylor 03cfd6071b
limit wait for title screen in wall clock time 2023-08-23 00:48:22 -07:00
Myk Taylor a7a5742710
fix tests sometimes timing out in ci 2023-08-21 01:48:42 -07:00
lethosor c6c7331b1b
test.lua: disallow overwriting existing tests
i.e. if a function name is accidentally reused - previously, later test
functions would silently overwrite earlier ones
2023-08-15 01:36:20 -04:00
Myk Taylor 6f3843e375
the test script is no longer in the hack path; remove extra script dir 2023-08-06 23:41:54 -07:00
Myk Taylor 3358a2b516
enable more tests 2023-08-04 20:40:33 -07:00
lethosor 7aa6aa317a
targets -> target part 2 2023-08-04 17:09:50 -04:00
Myk Taylor d93bf65115
fix typo 2023-08-04 10:25:49 -07:00
Myk Taylor 4c89af7c20
targets -> target 2023-08-04 10:11:28 -07:00
Myk Taylor d3884bd707
run ./dfhack instead of ./dwarfort on linux so we can see output
since we set the tty params
2023-08-03 22:52:17 -07:00
Myk Taylor f28b46922c
put all tests in a matrix 2023-08-03 22:48:23 -07:00
Myk Taylor ec461bcce5
zero tests mean pass 2023-08-03 22:48:23 -07:00
Myk Taylor 43a1fdc69c
only run tests for registered and available targets 2023-08-03 22:48:23 -07:00
Myk Taylor 5f5981f067
fix path creation 2023-08-03 22:48:22 -07:00
Myk Taylor 556c1eff92
adapt to new DF init paths 2023-08-03 22:48:22 -07:00
Myk Taylor 27b5d1e022
more windows fixups 2023-08-03 22:48:22 -07:00
Myk Taylor 55f1b0d48e
first attempt to run tests on windows 2023-08-03 22:48:22 -07:00
lethosor b17ca80d27
Also parse .proto files in plugin subdirectories
Followup fix for #3184
2023-08-04 01:18:21 -04:00
lethosor 8511775dbb
Add separators for readability 2023-08-04 01:12:50 -04:00
Myk Taylor 88dd273803
remove buildmaster integration files 2023-08-02 23:33:07 -07:00
lethosor 9434cd3d64
Fix and detect duplicates in Authors.rst 2023-02-10 15:58:18 -05:00
Myk Taylor 50cc6d965d
update to new save directory structure 2023-01-15 23:13:58 -08:00
Myk Taylor cd69103b8b
update path references, move NEWS files back 2022-11-30 04:16:41 -08:00
lethosor d786989450
Revert "Allowing whitespace-only lines."
This makes lint.py's behavior match pre-commit, which is useful because lint.py
errors show up inline on GitHub PRs.

This reverts commit ebb3dc48bf
2022-11-14 22:10:48 -05:00
myk002 837215ea64
modify ci/script-docs.py to read new doc locations 2022-07-20 16:28:11 -07:00
Myk 28e15162a5
reorganize init scripts into dfhack-config (#2232)
* reorganize init scripts into dfhack-config

allows player init scripts to build on defaults instead of replace them
this also moves the init scripts out of the main df directory

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* escape asterisks in docs

* remove unneeded dfhack.init file creation for test

* write the test init script to the new init dir

* create the init dir before trying to write a file

* rename default init files for clarity

* Update changelog

* Update docs/changelog.txt

Co-authored-by: Alan <lethosor@users.noreply.github.com>

* Try to get buildmaster to work with old branches

* Update changelog

* get keybindings from all init scripts

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix spacing in changelog

* split default loading into its own file

* update docs with new changes

* update help text wording in default init files

* Apply suggestions from code review

Co-authored-by: Alan <lethosor@users.noreply.github.com>

* Alphabetize changelog

* Update onMapLoad.default.init

* Update onMapLoad.init

* Update Core.rst

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alan <lethosor@users.noreply.github.com>
2022-07-10 08:54:55 -07:00
Myk d12134d326
check for files, not md5 receipt in download-df.sh (#2196) 2022-06-09 11:21:14 -07:00
Myk ea44be9b94
Enable fortress tests in CI (#2153)
* download and cache the test save along with df

Depends on us actually putting the test save on files.dfhack.org

* run fortress tests in run-tests.py

* use google drive link for now

* make the save directory before extracting to it
2022-06-02 15:50:17 -07:00
lethosor 71d003c77d
Ensure that test stack frames in the test file are printed
Previously, only frames in the file that called `expect.*()` were printed.
This change allows calling `expect.*()` from functions called by the files
under test. See dfhack/scripts#385 for an example with `expect.fail()`.
2022-05-27 01:03:40 -04:00
Myk b2aa2a9b31
move isoworld to pull from the new dfhack branch 2022-05-11 22:40:33 -07:00
Myk a3a0631c41
fix typo in ci/update-submodules.manifest 2022-05-11 22:18:52 -07:00
myk002 2c6e450ac9 update the list of submodules to autoupdate 2022-05-11 22:14:08 -07:00
lethosor 8696f72f77
Fix script-docs.py extension check
The check previously matched any filename ending in `lua`, not `.lua`. This
caused failures in my fork because I had a branch ending in `-lua`, which
created a file of that name in `.git/refs` that was not a valid Lua script.

For extra good measure, anything under `.git` is ignored now as well.
2022-05-11 01:06:47 -04:00
lethosor f44478f7dc
Add script to rebuild PRs on Buildmaster 2022-03-31 16:51:42 -04:00
lethosor 2471028227
test.lua: Dump some DF globals
This should help identify differences in environments, e.g. what the screen
resolution is in `PRINT_MODE:TEXT`. The `scripts/gui/blueprint:render_labels`
test currently fails in an 80x25 resolution, which implies that our CI is using
something else.
2021-09-28 21:18:50 -04:00
lethosor 1d0985d51a
Also log complete raw stderr to file 2021-09-17 23:28:40 -04:00
lethosor 0f479d905a
log stdout if DF fails 2021-09-17 23:28:40 -04:00