summaryrefslogtreecommitdiff
path: root/qpid/java/perftests/bin/processing/processAll.sh
blob: bc97fb79ec5d6bb41cd2f4c23aa59f648a7a4614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash 

usage()
{
 echo "processResults.sh <search dir>"
 exit 1
}

root=`pwd`
echo $root
graphFile=graph.data

if [ $# != 1 ] ; then
 usage
fi

mkdir -p results

for file in `find $1 -name $graphFile` ; do

  dir=`dirname $file`

  echo Processing : $dir
  pushd $dir &> /dev/null

  $root/process.sh $graphFile

  echo Copying Images
  cp work/*png $root/results/

  echo Copying Stats
  cp work/*.statistics.txt $root/results/
  

  popd &> /dev/null
  echo Done
done