2 # This is autotest Go-testing framework client. It runs on client
3 # machines and spawns autotest-worker, which picks a random pairing
4 # among the ones defined in the rc file, and plays a single game.
7 if [ -z "$clientid" ]; then
8 echo "Usage: $0 <clientid>" >&2
9 echo "At any time, only single client with the same client may run!" >&2
10 echo "You can use e.g. clientid \`hostname\`-1, increment 1 for" >&2
11 echo "further threads started on the host." >&2
16 mkdir
-p "c/$clientid"
17 log
"started client ($clientid)"
20 mkdir
-p "c/$clientid"
21 date +%s
>"c/$clientid/beacon"
22 if ! .
/autotest-worker
"$clientid"; then
23 echo "*** WORKER FAILED ***"
24 log
"worker failed with error code $?"