# input test file for TESTjudge
# TESTjudge is only built on make check. However, this file does not belong to
# the test suite. To run it, you have to export TESTJUDGE=$PWD/test/t1-in.txt
# and then run, e.g., ./TESTjudge --no-daemon --verbose=X Q2S Q4D (options and
# arguments are the same as for ibd-judge).
#
# That will simulate the reception of the given packets, on the said qu(eue)s,
# at the optionally specifide time delays. (This may result in records with
# a time stamp slightly in the future.) Issuing "settime" will get the next
# packet's time back to current time, which is what ibd-ban will use.
#
# DON'T DO THAT AGAINS YOUR WORKING DATABASE! As a precaution, TESTjudge won't
# run with root privileges. The options used below work on a debugging version
# configured as exemplified in INSTALL.

putenv DEL=$PWD/ibd-del
putenv BAN=$PWD/ibd-ban
putenv BANARG=--ip-addr=192.0.2.1 --initial-count=3 --initial-decay=240 --reason=test
system $DEL --del --ip-addr=192.0.2/24

# id qu src       dst         [time]
   1  2 192.0.2.1 192.0.2.255
   2  2 192.0.2.1 192.0.2.255

system $BAN $BANARG
settime
   3  2 192.0.2.1 192.0.2.255

system $BAN $BANARG
settime
   4  2 192.0.2.1 192.0.2.255
   5  2 192.0.2.1 192.0.2.255 60

system $BAN $BANARG
settime
   6  2 192.0.2.1 192.0.2.255
   7  2 192.0.2.1 192.0.2.255 60
   8  2 192.0.2.1 192.0.2.255 60

system $BAN $BANARG
settime
  10  2 192.0.2.1 192.0.2.255
  11  4 192.0.2.255 192.0.2.1 20
  12  4 192.0.2.255 192.0.2.1 20
  13  4 192.0.2.255 192.0.2.1 20
  14  4 192.0.2.255 192.0.2.1 20
  15  4 192.0.2.255 192.0.2.1 20

system $BAN $BANARG --verbose
system $BAN $BANARG --verbose
settime
  20  2 192.0.2.1 192.0.2.255
  21  4 192.0.2.255 192.0.2.1 20
  22  4 192.0.2.255 192.0.2.1 20
  23  4 192.0.2.255 192.0.2.1 20
  24  4 192.0.2.255 192.0.2.1 20
  25  4 192.0.2.255 192.0.2.1 20

