From fe9bb6bee5ed10c2d63aa4b65ac0634f3251571c Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Sat, 21 Jul 2018 22:30:58 -0400 Subject: [PATCH] declare shared dicts for tests --- build/test-lua.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/build/test-lua.sh b/build/test-lua.sh index 2786daa17..5a581a8f1 100755 --- a/build/test-lua.sh +++ b/build/test-lua.sh @@ -18,7 +18,11 @@ set -o errexit set -o nounset set -o pipefail -export LUA_PATH="/usr/local/lib/lua/?.lua;;" -export LUA_CPATH="/usr/local/lib/lua/?.so;/usr/lib/lua-platform-path/lua/5.1/?.so;;" - -resty ./build/busted ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test; +resty \ + -I ./rootfs/etc/nginx/lua \ + -I /usr/local/lib/lua \ + -I /usr/lib/lua-platform-path/lua/5.1 \ + --shdict "configuration_data 5M" \ + --shdict "balancer_ewma 1M" \ + --shdict "balancer_ewma_last_touched_at 1M" \ + ./build/busted ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/