mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
chore(just): update test recipe
Updates the test recipe to use the os_family() function to determine which test files to include. Renames 'test_unix.gd' -> 'test_nix.gd'.
This commit is contained in:
parent
05b19c1336
commit
43634affa3
2 changed files with 3 additions and 4 deletions
7
Justfile
7
Justfile
|
@ -11,8 +11,10 @@ build:
|
||||||
install:
|
install:
|
||||||
{{godot}} --headless -s plug.gd install
|
{{godot}} --headless -s plug.gd install
|
||||||
|
|
||||||
|
test_files := if os_family() == "unix" { "test/test_terminal.gd,test/test_pty.gd,test/test_nix.gd" } else { "test/test_terminal.gd,test/test_pty.gd" }
|
||||||
|
|
||||||
test:
|
test:
|
||||||
{{godot}} --headless -s addons/gut/gut_cmdln.gd -gtest=res://test/test_terminal.gd,res://test/test_pty.gd -gexit
|
{{godot}} --headless -s addons/gut/gut_cmdln.gd -gtest={{test_files}} -gexit
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
{{godot}} --windowed --resolution 400x200 --position 0,0 -s addons/gut/gut_cmdln.gd -gdir=res://test -gopacity=0 -gexit
|
{{godot}} --windowed --resolution 400x200 --position 0,0 -s addons/gut/gut_cmdln.gd -gdir=res://test -gopacity=0 -gexit
|
||||||
|
@ -20,8 +22,5 @@ test-all:
|
||||||
test-rendering:
|
test-rendering:
|
||||||
{{godot}} --windowed --resolution 400x200 --position 0,0 -s addons/gut/gut_cmdln.gd -gtest=res://test/test_rendering.gd -gopacity=0 -gexit
|
{{godot}} --windowed --resolution 400x200 --position 0,0 -s addons/gut/gut_cmdln.gd -gtest=res://test/test_rendering.gd -gopacity=0 -gexit
|
||||||
|
|
||||||
test-unix:
|
|
||||||
{{godot}} --headless -s addons/gut/gut_cmdln.gd -gtest=res://test/test_unix.gd -gexit
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
{{godot}} --headless -s plug.gd uninstall
|
{{godot}} --headless -s plug.gd uninstall
|
||||||
|
|
Loading…
Reference in a new issue