%
% This is configuration file for dbupdate test program.
# GLOBAL CONFIGURATION
#
# whois src root dir (for convenience)
WHOIS_SRC = @RIP@

# absolute path to whoisd root dir
WHOISDIR = @prefix@

# absolute path to base directory for testing
BASEDIR = $WHOIS_SRC/tests/dbupdate/testing

# absolute path to data dir
DATADIR = $WHOIS_SRC/tests/dbupdate/test-data

# absolute path to config dir
CONFDIR = $BASEDIR/conf

# absolute path to executables dir
BINDIR = $BASEDIR/bin

# absolute path to log dumps
DUMPDIR = $BASEDIR/dump

# absolute path to test-specific scripts
SCRIPTDIR = $BASEDIR/bin

# absolute path to tmp log files
LOGDIR = $BASEDIR/log

# logfiles used by testing system: relative names only!
# acklog notiflog forwlog updlog are taken from rip.config, 
# so they are commented out for reference
# current date is added to all of them

#ACKLOG     = acklog --> rip.config 
#NOTIFLOG   = notiflog --> rip.config
#FORWLOG    = forwlog --> rip.config 
#UPDLOG     = updlog --> rip.config

STDOUTLOG  = $LOGDIR/stdoutlog
STDERRLOG  = $LOGDIR/stderrlog
REPORTLOG  = $LOGDIR/reportlog
SUMMARYLOG = $LOGDIR/summarylog

# absolute path to temporary files
TEST_TMPDIR = $BASEDIR/tmp

# file where generic filters are located (common for all tests)
FILTERS = $CONFDIR/filters.config

# test dirs from this file will be excluded - relative paths (from RUNDIR)
EXCLUDE = $CONFDIR/EXCLUDE

# path to dbupdate
DBUPDATE = $WHOIS_SRC/src/dbupdate

# dbupdate flags: -r to redirect notifications sending, -T to allow mntner creation
DBUPDATE_GEN = -s -r -c $RIP_CONFIG
DBUPDATE_TEXT = -f
DBUPDATE_MAIL = -m
DBUPDATE_NET = -n
DBUPDATE_TRACE = -d
DBUPDATE_SYNC = -w
DBUPDATE_SAVE = -s

# path to whois client
WHOIS = /usr/local/bin/whois

# WHOIS host name (IPv4) (A few tests require this to be localhost)
WHOIS_HOST = localhost

# WHOIS IPv6 hostname, used for queries only (A few tests require this to be localhost)
WHOIS6_HOST = ::

# whois client flags
# SVWHOIS_PORT is taken from rip.config
WHOIS_FLAGS = -h $WHOIS_HOST -p $SVWHOIS_PORT

# loader 
LOAD_FILE = $SCRIPTDIR/load_file.sh

# make_db script
MAKE_DB = $SCRIPTDIR/make_db_test

# make_db flags - we empty the database
# SVCONFIG_PORT is taken from rip.config
# SOURCE is taken from rip.config (UPDSOURCE)

MAKE_DB_FLAGS = -l $LOAD_FILE -t $WHOISDIR -h $WHOIS_HOST -p $SVCONFIG_PORT -c $RIP_CONFIG -2 -f

# reset_db script
RESET_DB = $SCRIPTDIR/reset_db_test

# path to rip.config
RIP_CONFIG = $WHOISDIR/conf/rip.config 

# variable PGPPATH is taken from rip.config

# LOCAL CONFIGURATION
# naming conventions for local files for each test dataset
# objects to submit/load into the DB as initial state
LOADER_FILE = loader
DBUPDATE_FILE = dbupdate

# object to submit via dbupdate
TEST = test

# whois output to be matched with results
WHOIS_FILE = whois

# name for local filter file
FILTERS_LOCAL = filters_local.config

QUERY_FILE = query

# name for dbupdate temporary file 
# the directory name will be appended to this filename to maintain unique names.# example: basic-auth_aut-num_001.DEBUG
# this file will be deleted before starting particular test.
DEBUG = $TMPDIR/DEBUG

###### per-test variables
# set them in the 'test' file, not here. This is only for documenting purpose.
#
# $TEST_RIR=comma-separated list
# $DBUPDATE_FLAGS no filename added
# $DBUPDATE_FLAGS_EXT filename added
# $DBUPDATE_IGNORE_EXIT_CODE 
# $SCRIPT

