2006-12-21 06:30:28 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
rc=0
|
|
|
|
|
2007-02-09 17:32:17 +00:00
|
|
|
run=no
|
|
|
|
|
|
|
|
for SU_PORT in select epoll poll ; do
|
|
|
|
|
|
|
|
export SU_PORT
|
|
|
|
|
|
|
|
grep -q -i '^#define have_'$SU_PORT ../../config.h ||
|
|
|
|
continue
|
|
|
|
|
|
|
|
run=yes
|
|
|
|
|
2006-12-21 06:30:28 +00:00
|
|
|
if $VALGRIND ./test_su ; then
|
2007-02-09 17:32:17 +00:00
|
|
|
echo PASS: multithread test_su with $SU_PORT
|
2006-12-21 06:30:28 +00:00
|
|
|
else
|
2007-02-09 17:32:17 +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-02-09 17:32:17 +00:00
|
|
|
echo PASS: singlethread test_su with $SU_PORT
|
2006-12-21 06:30:28 +00:00
|
|
|
else
|
2007-02-09 17:32:17 +00:00
|
|
|
echo FAIL: singlethread test_su with $SU_PORT failed
|
2006-12-21 06:30:28 +00:00
|
|
|
rc=1
|
|
|
|
fi
|
|
|
|
|
2007-02-09 17:32:17 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
test $run = no && exit 77
|
|
|
|
|
2006-12-21 06:30:28 +00:00
|
|
|
exit $rc
|