crowdsec/tests/instance-db
Manuel Sabban b792c45921
Mysql enabled tests (#1372)
* add msyql backend test

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-03-18 17:36:51 +01:00

19 lines
326 B
Bash
Executable file

#!/usr/bin/env bash
#shellcheck disable=SC1007
THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "${THIS_DIR}"
case "$DB_BACKEND" in
sqlite)
./instance-sqlite "$@"
;;
mysql)
./instance-mysql "$@"
;;
*)
echo >&2 "unknown $DB_BACKEND"
exit 1
;;
esac;