From 43634affa3d70ea435a220a17f8f13ffad8efc0d Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sun, 25 Feb 2024 20:35:50 +1300 Subject: [PATCH] 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'. --- Justfile | 7 +++---- test/{test_unix.gd => test_nix.gd} | 0 2 files changed, 3 insertions(+), 4 deletions(-) rename test/{test_unix.gd => test_nix.gd} (100%) 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