diff --git a/Justfile b/Justfile index 9ef3b2d..d8f7ad2 100644 --- a/Justfile +++ b/Justfile @@ -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 diff --git a/test/test_unix.gd b/test/test_nix.gd similarity index 100% rename from test/test_unix.gd rename to test/test_nix.gd