Ecosystem:memcached

From PostgreSQL wiki

Jump to: navigation, search

Test procedure

This is how to run the pgmemcache regression test. First, download pgmemcache source code from here.

Before building pgmemcache, make slight modifications to Makefile to suite your environment. The relevant part is:

[before modification]
else
SHLIB_LINK = -lmemcached -lsasl2
PG_CPPFLAGS += -DUSE_LIBMEMCACHED
endif


[after modification]
else
SHLIB_LINK = -lmemcached
PG_CPPFLAGS += -DUSE_LIBMEMCACHED -I<PostgreSQL installation directory>/include
endif

Then, build pgmemcache.

$ make

Finally, run the regression test. This creates a database cluster in a temporary directory and uses it for testing.

$ localtests.sh

Personal tools