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

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

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

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

# Config file name
14
CONFIG=${CONFIG:-"config"}
15

16 17 18 19
# Additional parameters for kresd - non-interactive mode
ADDITIONAL="-f 1"

export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL
20

21
MAKEDIR="$(dirname "$(readlink -f "$0")")"
22
echo '=== Testing WITH query minimization ==='
23
export QMIN="true"
24
make -C "${MAKEDIR}"
25 26 27
echo '=== Testing WITHOUT query minimization ==='
export QMIN="false"
make -C "${MAKEDIR}"