#!/bin/bash # # Tests a "full" setup. Specifically, a setup including # userv-ipif, authbind, and with the iptables check not defeated. # # The server is run via the init script. # The client is run by hand as a user "user". set -e . "${0%/*}"/acommon setup-pair in- server sh -x /etc/init.d/userv start in- server service hippotatd restart in-ns-await-up server 192.0.2.1 in- client su user -c hippotat & clientpid=$! in-ns-await-up client 192.0.2.3 in-ns client \ env LC_MESSAGES=C \ ping -i 0.1 -c 100 192.0.2.1 \ | tee $tmp/ping grep ' 0% packet loss' $tmp/ping echo tests passed, cleaning up. $src/adt/acleanup t-ok