knotd_slave_run.sh 571 Bytes
Newer Older
1 2 3
#!/bin/bash

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

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

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

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

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

export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL

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