blob: ffff2106ce4304515389d2ac80d182ac49d5cc08 [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_Variable_PerfTest*.xml | awk '// {print; exit;}'"`
echo "TESTREPORTFILE: $TESTREPORTFILE"
if [ -f "$TESTREPORTFILE" ]
then
#only write header at the first run
if [ ! -f "VariablePerfTest.log" ]
then
echo "<h3>Variable Performance Test Report</h3>" >> temp1.txt
echo "Test report was generated at: $CURRENT_TIME<br>" >> temp1.txt
fi
touch VariablePerfTest.log
echo "<div class=\"Variable_PerfTestResults\">" >> temp1.txt
echo "<h4>TestCase $1:</h4>" >> temp1.txt
./testresultsXML2HTML.sh $TESTREPORTFILE >> temp1.txt
echo "</div>" >> temp1.txt
\rm $TESTREPORTFILE
fi