Files
sdb/test/sdb-test.sh
Riccardo Schirone 0f7249864c SdbHt: reintroduce growing (#160)
* Fixes for pkgconfig and meson
* Install missing headers
* Make tests runnable even if sdb is not installed
* refactor CFLAGS/LDFLAGS/SDB env var settings
* ht: remove load_factor field and introduce ht_new_size API
* handle more than the max number of precomputed prime indexes
* use HtKv inside SdbHtKv instead of copying its fields
* query: fix compiler warning by adding (char *)
* sdbht: create BUCKET macro
* ht: do not use macros, prefer static functions
2018-10-08 21:19:19 +02:00

20 lines
300 B
Bash

#!/bin/sh
CURRENT_DIR=.
if [ "$#" -eq 1 ]; then
CURRENT_DIR=$1
fi
SRCDIR="${CURRENT_DIR}"/../src
if [ -z "${BASEDIR}" ]; then
BASEDIR="${SRCDIR}"
fi
SDB=${BASEDIR}/sdb
if [ ! -x "${SDB}" ]; then
SDB=$(which sdb)
fi
if [ ! -x "${SDB}" ]; then
echo "Cannot find ${SDB}"
exit 1
fi