2 # start of an automatic testing script
13 0) set - isakmp-psk isakmp-rsa \
14 ipsec-psk ipsec-rsa ipsec-rsa-c \
15 ipsec-psk-rw ipsec-rsa-rw ipsec-oppo
28 [ -d "$LD" ] || mkdir -p "$LD"
30 # start Initiator pluto (daemon forks to return control)
31 $DOPLUTO west >$LD/pi-log 2>&1
33 # start Responder pluto (daemon forks to return control)
34 $DOPLUTO east >$LD/pr-log 2>&1
38 $DOWHACK d$t || DFAIL="$DFAIL $t $?"
41 *-rsa*) $DOWHACK kall ;;
46 $DOWHACK x$t || XFAIL="$XFAIL $t $?"
48 $DOWHACK shutdown || SFAIL="$SFAIL $t $?"
51 [ -f log.ref/$t/wi-log ] && cmp log.ref/$t/wi-log $LD/wi-log || CFAIL="$CFAIL $t $?"
56 [ -z "$DFAIL" ] || echo "definition failures:$DFAIL" >&2
57 [ -z "$XFAIL" ] || echo "execution failures:$XFAIL" >&2
58 [ -z "$SFAIL" ] || echo "shutdown failures:$SFAIL" >&2
59 [ -z "$CFAIL" ] || echo "cmp failures:$CFAIL" >&2