From ee282cf1487983c137f75e1c194b678040b1d02c Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 9 Apr 2018 20:34:39 -0400 Subject: [PATCH] Add tests target to Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 06e7728..4c13b05 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ TARGET_WINDOWS?=Windows Desktop TARGET_MACOSX?=Mac OSX TARGET_LINUX?=Linux/X11 WGET_ARGS?=-q + +GODOT_GUT_SCRIPT?=addons/gut/gut_cmdln.gd +GODOT_GUT_GDIR=res://tests/unit,res://tests/integration + build-dir: mkdir -p "$(BUILD_DIR)" @@ -50,3 +54,6 @@ install-templates: mv templates/ $(GODOT_TEMPLATE_DIR)/$(GODOT_TEMPLATE_VERSION) rm templates.tpz +tests: + $(GODOT) -d -s $(GODOT_GUT_SCRIPT) --path $(GODOT_PROJECT_PATH) -gdir=$(GODOT_GUT_GDIR) -gexit +