basic-ded-pool.sh 541 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash -x

# NOTE: this example uses a dedicated execution stream in Argobots to drive
# progress on the server

if [ -z $srcdir ]; then
    echo srcdir variable not set.
    exit 1
fi
source $srcdir/tests/test-util-ded-pool.sh

# start 1 server with 2 second wait, 20s timeout
test_start_servers 1 2 20

sleep 1

#####################

# run client test, which will also shut down server when done
20
run_to 10 tests/margo-test-client $svr1 &> /dev/null 
21 22 23 24 25 26 27 28 29 30 31
if [ $? -ne 0 ]; then
    wait
    exit 1
fi

#####################


wait

exit 0