mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
853936abd3
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4939 d0543943-73ff-0310-b7d9-9358b9ac24b2
35 lines
532 B
Bash
35 lines
532 B
Bash
#! /bin/bash
|
|
|
|
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
|