-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.sh
32 lines (30 loc) · 1.08 KB
/
demo.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
#!/bin/bash
################################
# Author : Shyam Rajendran #
# Version : 1.0 #
################################
clear
echo "**************************************************************************************************************"
echo "#### DEMO FOR GATHERING TEST DATA ACROSS REVISIONS FOR BELOW PROJECTS [ THIS IS FOR WITHOUT EKSTAZI ] ######"
echo "### Each sample project listed below "
echo ##
echo ##
echo "`cat projectList.txt`"
echo ##
echo ##
echo "Shall be run over 20 revisions and data collated in a CSV table for executed tests Vs Time."
echo ###
echo ###
echo "Please run this script within the script folder ####"
IFS=$'\n'
for i in `cat projectList.txt | grep -v \# | grep -v ^$`
do
CLONEURL=`echo $i | awk -F, '{print $1}'`
BASEVERSION=`echo $i | awk -F, '{print $2}'`
TESTCMD=`echo $i | awk -F, '{print $3}'`
REPOFLAG=`echo $i | awk -F, '{print $4}'`
PROJECT=`echo $i | awk -F, '{print $5}'`
LOGDIR=""
REVCOUNT=20
./executeTest.sh "demo" "$CLONEURL" "$BASEVERSION" "$REVCOUNT" "$LOGDIR" "$TESTCMD" "${REPOFLAG}" "${PROJECT}"
done