~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to allpairs/test/TR_linecount.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. ../../dttools/src/test_runner.common.sh
 
4
 
 
5
pidfile=worker.pid
 
6
portfile=worker.port
 
7
 
 
8
prepare()
 
9
{
 
10
    workerport=`find_free_port`
 
11
    ../../dttools/src/work_queue_worker -d all localhost $workerport &
 
12
    workerpid=$!
 
13
    echo $workerpid > $pidfile
 
14
    echo $workerport > $portfile
 
15
    ln -s ../src/allpairs_multicore .
 
16
    exit 0
 
17
}
 
18
 
 
19
run()
 
20
{
 
21
    exec ../src/allpairs_master -d all -p `cat $portfile` set.list set.list ./lc_compare.sh
 
22
}
 
23
 
 
24
clean()
 
25
{
 
26
    kill -9 `cat $pidfile`
 
27
    rm -f $pidfile $portfile
 
28
    rm -f allpairs_multicore
 
29
    exit 0
 
30
}
 
31
 
 
32
dispatch $@