summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2012-10-04 18:53:33 +0100
committerReuben Thomas <rrt@sc3d.org>2012-10-04 18:53:33 +0100
commited4a8521bd63704dc81284109791f5b33015b85d (patch)
tree02d3a934755231348fbdea69e9df81809d48357a
parent275b34b093d908323e1ba24107ddacc5256bd4be (diff)
downloadlrexlib-ed4a8521bd63704dc81284109791f5b33015b85d.tar.gz
Makefile: simplify running tests, and error if LUA is not set
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8872a87..f350546 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,9 @@ PROJECT_VERSIONED = $(PROJECT)-$(VERSION)
DISTFILE = $(PROJECT_VERSIONED).zip
check:
+ @if test -z "$(LUA)"; then echo "Set LUA to run tests"; exit 1; fi
@for i in $(REGNAMES); do \
- cd src/$$i && LUA_PATH="../../test/?.lua;$(LUA_PATH)" $(LUA) ../../test/runtest.lua -d. $$i && cd ../..; \
+ LUA_PATH="test/?.lua;$(LUA_PATH)" $(LUA) test/runtest.lua -dsrc/$$i $$i; \
done
docs: