Skip to content

Commit

Permalink
Makefile: allow testing with different interpreter values
Browse files Browse the repository at this point in the history
This will allow me to more easily run local tests with my
hacked `lua-no-tailcalls` interpreter binary.
  • Loading branch information
hishamhm committed Jan 9, 2024
1 parent a296a5f commit e3c7c86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
LUA ?=

ifeq ($(OS), Windows_NT)
BUSTED = busted.bat --suppress-pending --exclude-tags=unix
else
Expand All @@ -8,8 +10,8 @@ all: selfbuild suite

selfbuild:
cp tl.lua tl.lua.bak
./tl gen --check tl.tl && cp tl.lua tl.lua.1 || { cp tl.lua tl.lua.1; cp tl.lua.bak tl.lua; exit 1; }
./tl gen --check tl.tl && cp tl.lua tl.lua.2 || { cp tl.lua tl.lua.2; cp tl.lua.bak tl.lua; exit 1; }
$(LUA) ./tl gen --check tl.tl && cp tl.lua tl.lua.1 || { cp tl.lua tl.lua.1; cp tl.lua.bak tl.lua; exit 1; }
$(LUA) ./tl gen --check tl.tl && cp tl.lua tl.lua.2 || { cp tl.lua tl.lua.2; cp tl.lua.bak tl.lua; exit 1; }
diff tl.lua.1 tl.lua.2

suite:
Expand Down

0 comments on commit e3c7c86

Please sign in to comment.