run_test_su 538 Bytes
Newer Older
1
#! /bin/sh
2 3 4

rc=0

5 6
run=no

7
for SU_PORT in select kqueue devpoll epoll poll ; do
8 9 10

export SU_PORT

11
egrep -i '^#define have_(sys_)?'$SU_PORT ../../config.h >/dev/null ||
12 13 14 15
continue

run=yes

16
if $VALGRIND ./test_su ; then
17
    echo PASS: multithread test_su with $SU_PORT
18
else
19
    echo FAIL: multithread test_su with $SU_PORT failed
20 21 22 23
    rc=1
fi

if $VALGRIND ./test_su -s ; then
24
    echo PASS: singlethread test_su with $SU_PORT
25
else
26
    echo FAIL: singlethread test_su with $SU_PORT failed
27 28 29
    rc=1
fi

30 31 32 33
done

test $run = no && exit 77

34
exit $rc