stream-ssl: Break interpretation of queued error into new function.
[openvswitch] / tests / ofproto-macros.at
1 m4_define([STRIP_XIDS], [[sed 's/ (xid=0x[0-9a-fA-F]*)//']])
2 m4_define([STRIP_DURATION], [[sed 's/\bduration=[0-9.]*s/duration=?s/']])
3
4 m4_define([OFPROTO_START],
5   [OVS_RUNDIR=$PWD; export OVS_RUNDIR
6    OVS_LOGDIR=$PWD; export OVS_LOGDIR
7    trap 'kill `cat ovs-openflowd.pid`' 0
8    AT_CAPTURE_FILE([ovs-openflowd.log])
9    AT_CHECK(
10      [ovs-openflowd --detach --pidfile --enable-dummy --log-file dummy@br0 none --datapath-id=fedcba9876543210 $1],
11      [0], [ignore], [ignore])
12 ])
13
14 m4_define([OFPROTO_STOP],
15   [AT_CHECK([ovs-appctl -t ovs-openflowd exit])
16    trap '' 0])