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
22 - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 SANITIZERS=address;undefined
27 if ${SASL} || test -n "$MC_VERSION";
29 git clone -b ${MC_VERSION:-1.5.22} https://github.com/memcached/memcached &&
30 cd memcached && ./autogen.sh &&
31 CFLAGS="-O2 -pipe" ./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-sasl --enable-sasl-pwdb --disable-coverage --disable-docs &&
32 make -j2 && make install && cd ..;
33 ${PREFIX}/bin/memcached -l 127.0.0.1 -p ${PORT} -U ${PORT} -m 128 &
38 - echo stats settings | nc -q 0 localhost ${PORT:-11211} | column -t
39 - sudo systemctl stop memcached
40 - killall memcached || true
45 - cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DENABLE_SANITIZERS=${SANITIZERS} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
48 - make install DESTDIR=.
54 - cat Testing/Temporary/LastTest.log