##########################################################
# This script is executed from /scripts directory #
# in situare project folder #
##########################################################
# This script is executed from /scripts directory #
# in situare project folder #
-location=$HOME/situare/repository/situare/tests/
-FILE=$HOME/situare/repository/situare/reports/tests_summary.txt
-if [ ! -e $FILE ]; then
- touch tests_summary.txt
+location=$2
+echo $location
+echo "Tests situate at: $location"
+
+TEST_REPORT=$1
+echo "Directory to store test report: $1"
+#cd $location
+if [ ! -e $1/tests_summary.txt ]; then
+ touch $1/tests_summary.txt
echo "##########################################" >> tests_summary.txt
echo "# Summary of unit tests executed #" >> tests_summary.txt
echo "# Date: `date` #" >> tests_summary.txt
echo "##########################################" >> tests_summary.txt
echo "# Summary of unit tests executed #" >> tests_summary.txt
echo "# Date: `date` #" >> tests_summary.txt
##########################################################
#First part: Execution of all tests #
##########################################################
for component in "${MODULES[@]}" #Loop through components
do
cd $location/$component
##########################################################
#First part: Execution of all tests #
##########################################################
for component in "${MODULES[@]}" #Loop through components
do
cd $location/$component