File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ INSTALL ?= install
1010SRC := chash.c
1111OBJ := $(SRC:.c=.o )
1212
13- C_SO_NAME := libchash .so
13+ C_SO_NAME := librestychash .so
1414
1515CFLAGS := -Wall -O3 -flto -g -DFP_RELAX=0 -DDEBUG
1616THE_CFLAGS := $(CFLAGS ) -fPIC -MMD -fvisibility=hidden
1717
18+ test := t
19+
1820.PHONY = all test clean install
1921
2022all : $(C_SO_NAME )
@@ -35,7 +37,7 @@ install:
3537 $(INSTALL ) $(C_SO_NAME ) $(DESTDIR )$(LUA_LIB_DIR ) /
3638
3739test : all
38- PATH=$(OPENRESTY_PREFIX ) /nginx/sbin:$$ PATH prove -I../test-nginx/lib -r t
40+ PATH=$(OPENRESTY_PREFIX ) /nginx/sbin:$$ PATH prove -I../test-nginx/lib -r $( test )
3941
4042bench :
4143 $(OPENRESTY_PREFIX ) /bin/resty t/bench.lua
Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ local _M = {}
7777local mt = { __index = _M }
7878
7979
80- local clib = load_shared_lib (" libchash .so" )
80+ local clib = load_shared_lib (" librestychash .so" )
8181if not clib then
82- error (" can not load libchash .so" )
82+ error (" can not load librestychash .so" )
8383end
8484
8585local CONSISTENT_POINTS = 160 -- points per server
You can’t perform that action at this time.
0 commit comments