Michael Jerris 4ad763132d merge latest darcs changes from sofia-sip.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-17 13:43:45 +00:00

35 lines
530 B
Bash

#! /bin/sh
rc=0
run=no
for SU_PORT in select kqueue devpoll epoll poll ; do
export SU_PORT
egrep -q -i '^#define have_(sys_)?'$SU_PORT ../../config.h ||
continue
run=yes
if $VALGRIND ./test_su ; then
echo PASS: multithread test_su with $SU_PORT
else
echo FAIL: multithread test_su with $SU_PORT failed
rc=1
fi
if $VALGRIND ./test_su -s ; then
echo PASS: singlethread test_su with $SU_PORT
else
echo FAIL: singlethread test_su with $SU_PORT failed
rc=1
fi
done
test $run = no && exit 77
exit $rc