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:
Leroy Hopson 2024-02-25 20:35:50 +13:00
parent 05b19c1336
commit 43634affa3
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 3 additions and 4 deletions

View file

@ -11,8 +11,10 @@ build:
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:
{{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:
{{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:
{{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:
{{godot}} --headless -s plug.gd uninstall