2024-02-06 11:24:48 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Leroy Hopson <code@leroy.nix.nz>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
set dotenv-load
|
|
|
|
|
2024-02-24 04:17:31 +01:00
|
|
|
godot := `echo "${GODOT:-godot} --rendering-driver ${RENDERING_DRIVER:-vulkan}"`
|
2024-02-06 11:24:48 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
cd addons/godot_xterm/native && scons
|
2024-02-17 23:50:38 +01:00
|
|
|
|
|
|
|
install:
|
|
|
|
{{godot}} --headless -s plug.gd install
|
|
|
|
|
|
|
|
test:
|
2024-02-24 07:47:12 +01:00
|
|
|
{{godot}} --headless -s addons/gut/gut_cmdln.gd -gtest=res://test/test_terminal.gd,res://test/test_pty.gd -gexit
|
2024-02-18 08:26:32 +01:00
|
|
|
|
|
|
|
test-rendering:
|
|
|
|
{{godot}} --windowed --resolution 400x200 --position 0,0 -s addons/gut/gut_cmdln.gd -gtest=res://test/test_rendering.gd -gopacity=0 -gexit
|
2024-02-17 23:50:38 +01:00
|
|
|
|
2024-02-24 07:47:12 +01:00
|
|
|
test-unix:
|
|
|
|
{{godot}} --headless -s addons/gut/gut_cmdln.gd -gtest=res://test/test_unix.gd -gexit
|
|
|
|
|
2024-02-17 23:50:38 +01:00
|
|
|
uninstall:
|
|
|
|
{{godot}} --headless -s plug.gd uninstall
|