knotd_slave_run.sh 598 Bytes
Newer Older
1
#!/bin/bash
Petr Špaček's avatar
Petr Špaček committed
2
set -o errexit -o nounset
3
4

# Path to scenario files
5
TESTS=${TESTS:-"sets/knotd/slave"}
6
7

# Path to daemon
8
DAEMON=${DAEMON:-"knotd"}
9

10
# Template file name
11
TEMPLATE=${TEMPLATE:-"template/knotd_slave.j2"}
12
13

# Config file name
14
CONFIG=${CONFIG:-"knotd.conf"}
15
16
17

# Additional parameter for knotd
# it means configuration file can be found in working directory
18
ADDITIONAL=${ADDITIONAL:-"-c ./knotd.conf"}
19
20
21

export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL

22
echo 'INFO: Tests require Knot compiled with ./configure --enable-recvmmsg=no'
23
24
MAKEDIR="$(dirname "$(readlink -f "$0")")"
make -C "${MAKEDIR}"