Add tests target to Makefile

This commit is contained in:
Kienan Stewart 2018-04-09 20:34:39 -04:00
parent 5562d82f49
commit ee282cf148
1 changed files with 7 additions and 0 deletions

View File

@ -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