From 760db1bf7beac29f6fbf124e76d3eb630b544ce7 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sun, 22 Sep 2019 09:57:50 -0700 Subject: attempt to run openresty perl tests --- tests/TestLua.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/TestLua.pm b/tests/TestLua.pm index 64372ad..e13bfd3 100644 --- a/tests/TestLua.pm +++ b/tests/TestLua.pm @@ -32,12 +32,13 @@ sub run_test ($) { my ($res, $err); my @cmd; + my $lua_bin = $ENV{LUA_BIN} || "luajit"; if ($ENV{TEST_LUA_USE_VALGRIND}) { warn "$name\n"; - @cmd = ('valgrind', '-q', '--leak-check=full', 'luajit', 'test_case.lua'); + @cmd = ('valgrind', '-q', '--leak-check=full', $lua_bin, 'test_case.lua'); } else { - @cmd = ('luajit', 'test_case.lua'); + @cmd = ($lua_bin, 'test_case.lua'); } run3 \@cmd, undef, \$res, \$err; -- cgit v1.2.3-55-g6feb