knotd_master_run.sh 583 Bytes
Newer Older
1
#!/bin/bash
2
set -o errexit -o nounset
3 4

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

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

10
# Template file name
11
TEMPLATE=${TEMPLATE:-"template/knotd_master.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
MAKEDIR="$(dirname "$0")"
24
make -C "${MAKEDIR}"