From c49dd8bd96aa54fd2ce68403d9bb59301de247c6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 12 Sep 2015 10:58:18 +0200 Subject: [PATCH] Ensure luarocks env variables are set for make-automation --- automation/Makefile | 2 +- automation/tests/busted.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 automation/tests/busted.lua diff --git a/automation/Makefile b/automation/Makefile index 45a5ce21d..05464cec8 100644 --- a/automation/Makefile +++ b/automation/Makefile @@ -19,7 +19,7 @@ aegisub-lua_LIBS := $(LIBS_WX) $(LIBS_BOOST) $(LIBS_ICU) PROGRAM += $(d)aegisub-lua test-automation: $(PROGRAM) - cd $(TOP)automation; LUA=./aegisub-lua busted -p 'moon' tests/modules + eval `luarocks path`; cd $(TOP)automation; LUA=./aegisub-lua busted -p 'moon' tests/modules test: test-automation diff --git a/automation/tests/busted.lua b/automation/tests/busted.lua new file mode 100644 index 000000000..a8b4c6c08 --- /dev/null +++ b/automation/tests/busted.lua @@ -0,0 +1 @@ +require 'busted.runner'({ batch = true })