-
Notifications
You must be signed in to change notification settings - Fork 0
/
collateResults.sh
38 lines (36 loc) · 1003 Bytes
/
collateResults.sh
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
38
#!/bin/bash
################################################################################################
# About : Script to collect execution logs of various projects and output a CSV for charting
# Author : Shyam Rajendran
################################################################################################
LOGDIR=$1
SCRIPTDIR=$2
COLLATESCRIPTPATH=$SCRIPTDIR"/collateTime.py"
GENERATETABLESCRIPTPATH=$SCRIPTDIR"/generateChart.sh"
echo ###
echo ###
echo "STARTING TO COLLECT RUN DETAILS....."
echo ###
echo ###
for j in `find $LOGDIR -type f -name "*.log"`
do
sed -i -e "s/^.*>>>>>>>>>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>>>>/g" $j
echo -ne "COLLETING RUN DETAILS FOR $j"
python $COLLATESCRIPTPATH $j > ${j}.TABLE
echo ": DONE"
done
echo ###
echo ###
echo ###
echo "CREATING FINAL SUMMARY TABLE"
echo ###
echo ###
bash $GENERATETABLESCRIPTPATH $LOGDIR | tee $LOGDIR"/"import.csv
echo ###
echo ###
echo ###
echo "IMPORT $LOGDIR"/"import.csv to CHART"
echo ###
echo ###
echo ###
echo ###