19 - BUILD=Release SASL=false
20 - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
21 - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
26 if ${SASL} || test -n "$MC_VERSION";
28 git clone -b ${MC_VERSION:-1.5.22} https://github.com/memcached/memcached &&
29 cd memcached && ./autogen.sh &&
30 CFLAGS="-O2 -pipe" ./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-sasl --enable-sasl-pwdb --disable-coverage --disable-docs &&
31 make -j2 && make install && cd ..;
32 ${PREFIX}/bin/memcached -l 127.0.0.1 -p ${PORT} -U ${PORT} -m 128 &
37 - echo stats settings | nc -q 0 localhost ${PORT:-11211} | column -t
42 - cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
45 - make install DESTDIR=.
51 - cat Testing/Temporary/LastTest.log