5 cmd="./`basename $0 .t`"
7 make ${cmd} >/dev/null 2>&1
14 result=`${cmd} -t $2 $3 ${5%% *} 2>&1`
18 echo "ok $1 - $4 ${5#* }"
19 echo ${result} | grep -E "SERVER|CLIENT" | while read line; do
27 "1 Sending, receiving cmsgcred" \
28 "4 Sending cmsgcred, receiving sockcred" \
29 "5 Sending, receiving timeval" \
30 "6 Sending, receiving bintime" \
31 "7 Check cmsghdr.cmsg_len"
40 run ${n} stream "-z ${t2%% *}" STREAM "${t1} ${t2#* }"
45 "2 Receiving sockcred (listening socket)" \
46 "3 Receiving sockcred (accepted socket)"
53 run ${n} stream "-z ${t2%% *}" STREAM "${t1} ${t2#* }"
58 run ${n} stream "-z 0" STREAM "8 Check LOCAL_PEERCRED socket option"
61 "1 Sending, receiving cmsgcred" \
62 "3 Sending cmsgcred, receiving sockcred" \
63 "4 Sending, receiving timeval" \
64 "5 Sending, receiving bintime" \
65 "6 Check cmsghdr.cmsg_len"
74 run ${n} dgram "-z ${t2%% *}" DGRAM "${t1} ${t2#* }"
79 "2 Receiving sockcred"
86 run ${n} dgram "-z ${t2%% *}" DGRAM "${t1} ${t2#* }"