cloudflare / lua-resty-cookie

Lua library for HTTP cookie manipulations for OpenResty/ngx_lua
347 stars 160 forks source link

Make test is broken #43

Closed utix closed 2 years ago

utix commented 3 years ago

From master

make test
PATH=/usr/local/openresty/nginx/sbin:$PATH prove -I../test-nginx/lib -r t
t/sanity.t .. 44/72 # Looks like you planned 72 tests but ran 74.
t/sanity.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
All 72 subtests passed 

Test Summary Report
-------------------
t/sanity.t (Wstat: 65280 Tests: 74 Failed: 2)
  Failed tests:  73-74
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 72 tests but ran 74.
Files=1, Tests=74,  2 wallclock secs ( 0.04 usr  0.00 sys +  0.38 cusr  0.13 csys =  0.55 CPU)
Result: FAIL
make: *** [Makefile:17: test] Error 1

Using git bisect a2cb7798133d891510bd37340390314644083da9 is the first bad commit

a2cb7798133d891510bd37340390314644083da9 is the commit adding a test but not updating plan tests

vathsalashetty96 commented 3 years ago

I am new to lua..getting this error while running make test..anyone have idea?

make test PATH=/usr/local/openresty/nginx/sbin:$PATH prove -I../test-nginx/lib -r t t/sanity.t .. nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 nginx: [emerg] unknown directive "lua_package_path" in /root/lua-resty-cookie/t/servroot/conf/nginx.conf:26 Bailout called. Further testing stopped: TEST 8: remove duplicated cookies in cookie:set - Cannot start nginx using command "nginx -p /root/lua-resty-cookie/t/servroot/ -c /root/lua-resty-cookie/t/servroot/conf/nginx.conf > /dev/null" (status code 256). FAILED--Further testing stopped: TEST 8: remove duplicated cookies in cookie:set - Cannot start nginx using command "nginx -p /root/lua-resty-cookie/t/servroot/ -c /root/lua-resty-cookie/t/servroot/conf/nginx.conf > /dev/null" (status code 256). make: *** [Makefile:17: test] Error 255