blob: ad252ea464d3b82cf0dd2059fea5a8c6cadc54d2 [file] [log] [blame]
#!/bin/bash
#///////////////////////////////////////////////////////////////////////////////
#// Copyright (c) 2000-2019 Ericsson Telecom AB //
#// //
#// All rights reserved. This program and the accompanying materials //
#// are made available under the terms of the Eclipse Public License v2.0 //
#// which accompanies this distribution, and is available at //
#// https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html //
#///////////////////////////////////////////////////////////////////////////////
# Add thich to the CFG file:
#
#[EXTERNAL_COMMANDS]
#EndTestCase := "storePerformanceResults.sh"
#
CURRENT_TIME=`date '+%Y-%m-%d %H:%M:%S'`
TESTREPORTFILE=`eval "ls -1t tc_EPTF_SMacro_PerfTest*.xml | awk '// {print; exit;}'"`
echo "TESTREPORTFILE: $TESTREPORTFILE"
if [ -f "$TESTREPORTFILE" ]
then
#only write header at the first run
if [ ! -f "SMacroPerfTest.log" ]
then
echo "<h3>SMacro Performance Test Report</h3>" >> temp1.txt
echo "Test report was generated at: $CURRENT_TIME<br>" >> temp1.txt
fi
touch SMacroPerfTest.log
echo "<div class=\"SMacro_PerfTestResults\">" >> temp1.txt
echo "<h4>TestCase $1:</h4>" >> temp1.txt
testresultsXML2HTML.sh $TESTREPORTFILE >> temp1.txt
echo "</div>" >> temp1.txt
\rm $TESTREPORTFILE
fi