2007-04-17 13:43:45 +00:00
|
|
|
#! /bin/sh
|
2006-12-21 06:30:28 +00:00
|
|
|
|
|
|
|
rc=0
|
|
|
|
|
2007-04-15 02:03:41 +00:00
|
|
|
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
|
|
|
|
|
2006-12-21 06:30:28 +00:00
|
|
|
if $VALGRIND ./test_su ; then
|
2007-04-15 02:03:41 +00:00
|
|
|
echo PASS: multithread test_su with $SU_PORT
|
2006-12-21 06:30:28 +00:00
|
|
|
else
|
2007-04-15 02:03:41 +00:00
|
|
|
echo FAIL: multithread test_su with $SU_PORT failed
|
2006-12-21 06:30:28 +00:00
|
|
|
rc=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $VALGRIND ./test_su -s ; then
|
2007-04-15 02:03:41 +00:00
|
|
|
echo PASS: singlethread test_su with $SU_PORT
|
2006-12-21 06:30:28 +00:00
|
|
|
else
|
2007-04-15 02:03:41 +00:00
|
|
|
echo FAIL: singlethread test_su with $SU_PORT failed
|
2006-12-21 06:30:28 +00:00
|
|
|
rc=1
|
|
|
|
fi
|
|
|
|
|
2007-04-15 02:03:41 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
test $run = no && exit 77
|
|
|
|
|
2006-12-21 06:30:28 +00:00
|
|
|
exit $rc
|