]> rtime.felk.cvut.cz Git - frescor/frsh.git/blob - frsh_api/tests/negotiation.sh
frsh: Simplify negotiation test and rename the full test as renegotiation
[frescor/frsh.git] / frsh_api / tests / negotiation.sh
1 #!/bin/bash
2
3 . $(dirname $0)/wvtest.sh
4
5 wvtest_cleanup() {
6     WVPASS kill `cat fcb.pid`
7     WVPASS rm fcb.pid
8     WVPASS kill `cat frm.pid`
9     WVPASS rm frm.pid
10 }
11
12 WVSTART Setup
13 WVPASS fcb -dfcb.pid
14 WVPASS frm_dummy -dfrm.pid
15
16 # cat > .gdbinit <<EOF
17 # break main
18 # run
19
20 # break forb_peer_get
21 # commands
22 # printf "serverid=%llx  refcount=%d\n", *(int64_t*)&peer->server_id, peer->ref.refcount+1
23 # bt
24 # cont
25 # end
26
27 # break forb_peer_put
28 # commands
29 # printf "serverid=%llx  refcount=%d\n", *(int64_t*)&peer->server_id, peer->ref.refcount
30 # bt
31 # cont
32 # end
33
34 # break forb_destroy
35 # cont
36 # layout src
37 # EOF
38
39 WVPASS negotiation