aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorleaf corcoran <leafot@gmail.com>2019-09-22 09:57:50 -0700
committerleaf <leafot@gmail.com>2020-04-25 14:24:18 -0700
commit760db1bf7beac29f6fbf124e76d3eb630b544ce7 (patch)
tree3cf35d1fa97ab09a3bd36ef628a1b5656fe260ee /tests
parent206cb297178ff46b4c5e5de38744cd648dac4f22 (diff)
downloadlua-cjson-760db1bf7beac29f6fbf124e76d3eb630b544ce7.tar.gz
lua-cjson-760db1bf7beac29f6fbf124e76d3eb630b544ce7.tar.bz2
lua-cjson-760db1bf7beac29f6fbf124e76d3eb630b544ce7.zip
attempt to run openresty perl tests
Diffstat (limited to 'tests')
-rw-r--r--tests/TestLua.pm5
1 files changed, 3 insertions, 2 deletions
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 ($) {
32 my ($res, $err); 32 my ($res, $err);
33 33
34 my @cmd; 34 my @cmd;
35 my $lua_bin = $ENV{LUA_BIN} || "luajit";
35 36
36 if ($ENV{TEST_LUA_USE_VALGRIND}) { 37 if ($ENV{TEST_LUA_USE_VALGRIND}) {
37 warn "$name\n"; 38 warn "$name\n";
38 @cmd = ('valgrind', '-q', '--leak-check=full', 'luajit', 'test_case.lua'); 39 @cmd = ('valgrind', '-q', '--leak-check=full', $lua_bin, 'test_case.lua');
39 } else { 40 } else {
40 @cmd = ('luajit', 'test_case.lua'); 41 @cmd = ($lua_bin, 'test_case.lua');
41 } 42 }
42 43
43 run3 \@cmd, undef, \$res, \$err; 44 run3 \@cmd, undef, \$res, \$err;